]>
git.madduck.net Git - code/vcsh.git/log
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
Jeff Fein-Worton [Wed, 12 Mar 2014 05:47:27 +0000 (22:47 -0700)]
Improved post-init-add-origin hook
Added better help text
Added error message if $GITURL unset
Jeff Fein-Worton [Sat, 22 Feb 2014 08:33:23 +0000 (00:33 -0800)]
added sample post-init
Richard Hartmann [Fri, 21 Feb 2014 22:41:29 +0000 (23:41 +0100)]
Merge branch 'feature/gitattributes'
Conflicts:
vcsh
Richard Hartmann [Fri, 21 Feb 2014 20:35:54 +0000 (21:35 +0100)]
Merge branch 'master' of github.com:RichiH/vcsh
Richard Hartmann [Fri, 21 Feb 2014 20:35:16 +0000 (21:35 +0100)]
vcsh: Support per-repo .gitattributes
Richard Hartmann [Fri, 21 Feb 2014 20:29:07 +0000 (21:29 +0100)]
vcsh: Formatting
Richard Hartmann [Fri, 21 Feb 2014 20:27:43 +0000 (21:27 +0100)]
Merge pull request #106 from a-sk/master
Fix typo $XDH_CONFIG_HOME -> $XDG_CONFIG_HOME
Skurikhin Alexander [Wed, 19 Feb 2014 02:47:59 +0000 (05:47 +0300)]
Fix typo $XDH_CONFIG_HOME -> $XDG_CONFIG_HOME
Richard Hartmann [Thu, 13 Feb 2014 22:40:28 +0000 (23:40 +0100)]
Merge branch 'feature/chown'
Richard Hartmann [Thu, 13 Feb 2014 22:32:31 +0000 (23:32 +0100)]
vcsh: Fix up the rest of the (relevant) git calls
Richard Hartmann [Wed, 12 Feb 2014 23:39:21 +0000 (00:39 +0100)]
vcsh: Pass along exit code
If `git foo` exits 13, it would be prudent for vcsh to exit 13, as well.
Start with support for `vcsh pull`.
Richard Hartmann [Sun, 9 Feb 2014 18:08:18 +0000 (19:08 +0100)]
Introduce static manpage as part of normal repo
GitHub: fixes RichiH/vcsh#104
Richard Hartmann [Sat, 8 Feb 2014 16:00:47 +0000 (17:00 +0100)]
doc/sample_hooks/: Cleanups
Richard Hartmann [Sat, 8 Feb 2014 15:30:38 +0000 (16:30 +0100)]
Merge pull request #89 from alerque/master
Add hooks to allow fancy merge handling
Caleb Maclennan [Sun, 20 Oct 2013 01:35:10 +0000 (19:35 -0600)]
add sample hooks that allow cloning over extant files
Cloning a repo over an existing set of files would usually
cause a merge conflict that aborts the process and requires
manual intervention. This pair of hooks handles that case
by manually moving the extant objects out of the way,
completing the checktout, then restoring them to their
original places. The resulting state is a set of unstaged
local changes.
Caleb Maclennan [Sun, 20 Oct 2013 01:11:52 +0000 (19:11 -0600)]
add hooks to enable auto handing of merge conflicts
These hooks before and after the actual checkout process
will enable a pair of hook scripts to automatically handle
conflicts and potentially allow the checkout of repositories
over existing file sets
Richard Hartmann [Tue, 4 Feb 2014 22:16:03 +0000 (23:16 +0100)]
Update CONTRIBUTORS
Dato Simó [Mon, 23 Sep 2013 20:47:43 +0000 (21:47 +0100)]
vcsh: don't allow `clone` to choke on filenames with spaces
By replacing the "for" loop with a "while" loop, it is easy to read
line-oriented output without worrying about spaces. However, now the
loop executes in a subshell, and VCSH_CONFLICT won't be available in
the parent shell. In this case, a trivial, portable solution is to
have the comparison as the last command in the subshell.
Dato Simó [Mon, 23 Sep 2013 21:13:54 +0000 (22:13 +0100)]
vcsh: strip host part from GIT_REMOTE when inferring VCSH_REPO_NAME
`vcsh clone` does:
VCSH_REPO_NAME=$(basename "${GIT_REMOTE}" .git)
Typically, most remote paths will have a non-empty directory component,
so using basename works well in all common cases. However, when doing
something like:
% vcsh clone example.org:repo.git
VCSH_REPO_NAME will be set to "example.org:repo" instead of "repo". This
also happens when using url.<x>.insteadOf, à-la:
% vcsh clone v:repo
Stripping everything up to the first colon in the remote URL fixes the
issue.
N.B.: remote URLs with protocol (e.g. http://, git://, or ssh://) do
not exhibit this problem, and are unaffected by this change.
Conflicts:
vcsh
Richard Hartmann [Tue, 21 Jan 2014 14:56:15 +0000 (15:56 +0100)]
vcsh: Initialize repos with --shared=0600
Configurations and other dotdir content may be highly confidential.
Ensure we're not leaking/exposing information by making vcsh
repositories user-accessible, only.
Thanks to Enrico Zini for realizing this was a problem.
Richard Hartmann [Mon, 6 Jan 2014 02:06:40 +0000 (03:06 +0100)]
Update CONTRIBUTORS
Richard Hartmann [Sun, 29 Dec 2013 16:41:12 +0000 (17:41 +0100)]
.gitignore: Ignore .swp
Opening Vim in $PWD without a file name (think scratch pad) will open
.swp, which is not matched by *.swp
Richard Hartmann [Sun, 29 Dec 2013 16:25:25 +0000 (17:25 +0100)]
sh: Bump version to 1.
20131229 .git-HEAD
Richard Hartmann [Sun, 29 Dec 2013 16:22:24 +0000 (17:22 +0100)]
Richard Hartmann [Sun, 29 Dec 2013 00:54:00 +0000 (01:54 +0100)]
vcsh: Improve comments
Richard Hartmann [Sun, 29 Dec 2013 00:51:14 +0000 (01:51 +0100)]
vcsh: Typo
Mikhail Gusarov [Sat, 28 Dec 2013 16:41:53 +0000 (17:41 +0100)]
Use 'case' sh construct to shorten short commands' recognition
Mikhail Gusarov [Sat, 28 Dec 2013 16:37:44 +0000 (17:37 +0100)]
Use "assign default values" sh feature to simplify defaults handling
Richard Hartmann [Sun, 29 Dec 2013 00:04:49 +0000 (01:04 +0100)]
vcsh: More resilient variable handling for
6b22746e94bf469dd462907fd43d13a454e56ede
Mikhail Gusarov [Sat, 28 Dec 2013 16:31:42 +0000 (17:31 +0100)]
Use sh 'default value' expansion more idiomatic construct
Richard Hartmann [Sat, 28 Dec 2013 15:21:32 +0000 (16:21 +0100)]
README.md: Update Debian install directions
Richard Hartmann [Sat, 28 Dec 2013 15:20:13 +0000 (07:20 -0800)]
Merge pull request #101 from dastergon/add_gentoo_doc
Add Gentoo installation in README
Richard Hartmann [Sat, 28 Dec 2013 14:21:20 +0000 (15:21 +0100)]
vcsh: Improve error message
Richard Hartmann [Sat, 28 Dec 2013 14:17:36 +0000 (15:17 +0100)]
vcsh: Fix mktemp bug
2650689d28f662e147d0be4c3ee248f873dbcc3c introduced a bug:
If we are using a template, GNU mktemp will use PWD instead of $TMPDIR
Richard Hartmann [Thu, 26 Dec 2013 20:23:11 +0000 (21:23 +0100)]
Merge branch 'master' of github.com:RichiH/vcsh
Pavlos Ratis [Tue, 24 Dec 2013 22:33:18 +0000 (00:33 +0200)]
add Gentoo installation in README
Richard Hartmann [Fri, 20 Dec 2013 22:34:54 +0000 (14:34 -0800)]
Merge pull request #98 from dottedmag/fix--echo-n-os-x
Use printf, not echo -n to print messages without newline
Mikhail Gusarov [Wed, 18 Dec 2013 21:23:22 +0000 (22:23 +0100)]
Use printf, not echo -n to print messages without newline
OS X echo does not understand -n and prints it literally
Richard Hartmann [Wed, 18 Dec 2013 13:59:51 +0000 (14:59 +0100)]
Merge branch 'master' of github.com:RichiH/vcsh
Richard Hartmann [Tue, 17 Dec 2013 01:48:17 +0000 (17:48 -0800)]
Merge pull request #97 from Zearin/tables
README.md: Use GFM tables for Usage
Tony [Mon, 16 Dec 2013 19:27:56 +0000 (14:27 -0500)]
Use GFM table syntax for usage examples
Table syntax in GFM? Oh, yes:
<https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#tables>
Richard Hartmann [Sat, 14 Dec 2013 10:12:17 +0000 (11:12 +0100)]
vcsh: Formatting
Richard Hartmann [Fri, 13 Dec 2013 23:25:36 +0000 (00:25 +0100)]
vcsh: Bump version to 1.
20131214 .git-HEAD
Richard Hartmann [Fri, 13 Dec 2013 23:01:30 +0000 (00:01 +0100)]
Richard Hartmann [Mon, 9 Dec 2013 09:18:34 +0000 (10:18 +0100)]
Revert "Implement basename in shell"
This reverts commit
794f0aac869dda034300211e9be45db123d84377 .
Conflicts:
vcsh
Turns out the shell implementation didn't account for trailing
slashes. While, arguably, a proper interactive shell should eat
them before execution anyway, this can also be called in script
context.
This means that
vcsh clone foo/
made it fail and even after commit
7e33e38a869989d04d12f2ef160d514041eb01e3
vcsh clone foo//
would have failed.
Revert to safe and time-proven default: Standalone `basename`.
For further information, see:
https://github.com/RichiH/vcsh/pull/92
Richard Hartmann [Mon, 9 Dec 2013 09:17:57 +0000 (10:17 +0100)]
Merge remote-tracking branch 'archwyrm/clone-trailing-slash-fix'
Markus Martin [Sun, 1 Dec 2013 21:42:33 +0000 (16:42 -0500)]
Fix missing blank repository name when cloning
If the repository path given to 'vcsh clone' contains a trailing slash,
the resulting cloned directory will be '.git' and vcsh will not
recognize the cloned repository by name. This change ensures that a
trailing slash will be stripped and the repository name will be
populated.
The previous faulty behavior is due to the custom implementation of the
basename command first introduced in
794f0aac .
Rob Cornish [Mon, 25 Nov 2013 04:55:34 +0000 (15:55 +1100)]
Fixed variable assignment bug in rename()
Richard Hartmann [Sun, 27 Oct 2013 17:55:29 +0000 (18:55 +0100)]
Makefile: Make `make test` silent
Richard Hartmann [Sun, 27 Oct 2013 17:54:53 +0000 (18:54 +0100)]
Makefile: Avoid calling `dirname`
Caleb Maclennan [Sun, 20 Oct 2013 01:58:22 +0000 (19:58 -0600)]
Removed newline escape sequence that was not properly being obeyed anyway, was printing to the console as is. Not needed because the echo being used already terminates with a newline.
Richard Hartmann [Sun, 27 Oct 2013 11:45:54 +0000 (12:45 +0100)]
CONTRIBUTORS: Add Caleb Maclennan
Caleb Maclennan [Sun, 20 Oct 2013 01:28:18 +0000 (19:28 -0600)]
Removed unnecessary syntax
Richard Hartmann [Sun, 27 Oct 2013 11:34:20 +0000 (12:34 +0100)]
tools/list_CONTRIBUTORS, CONTRIBUTORS: Better wording
Richard Hartmann [Sun, 27 Oct 2013 11:30:09 +0000 (12:30 +0100)]
CONTRIBUTORS: Update
Richard Hartmann [Sun, 27 Oct 2013 11:17:11 +0000 (12:17 +0100)]
Merge branch 'master' of github.com:RichiH/vcsh
Richard Hartmann [Sun, 27 Oct 2013 11:16:27 +0000 (12:16 +0100)]
Richard Hartmann [Sun, 27 Oct 2013 11:09:51 +0000 (04:09 -0700)]
Merge pull request #86 from xaocon/master
updated docs to leave out run so it will be consistent
Richard Hartmann [Sun, 27 Oct 2013 11:04:55 +0000 (04:04 -0700)]
Merge pull request #90 from Dridi/feature--makefile_dirs
Make Makefile more configurable (doc and zsh dirs)
Dridi Boukelmoune [Tue, 22 Oct 2013 17:15:26 +0000 (19:15 +0200)]
Make Makefile more configurable (doc and zsh dirs)
Some distributions expect the documentation in /usr/share/doc/name, and
others in /usr/share/doc/name-version. The zsh directory for completion
is also configurable due to differences between distributions.
Gregor Jasny [Thu, 17 Oct 2013 19:25:09 +0000 (21:25 +0200)]
Make root tool configurable
On Macports one need to run ronn-1.9 instead of ronn. Therefore
make ronn tool configurable. one can now run
make RONN=ronn-1.9
to execute ronn-1.9 instead of the default ronn.
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Evan Pitstick [Mon, 30 Sep 2013 19:28:13 +0000 (15:28 -0400)]
updated docs to leave out run so it will be consistent
Richard Hartmann [Fri, 20 Sep 2013 15:32:08 +0000 (17:32 +0200)]
Merge branch 'master' of github.com:RichiH/vcsh
Richard Hartmann [Fri, 20 Sep 2013 15:31:15 +0000 (17:31 +0200)]
vcsh: Add ".git-HEAD" to version number
This should make reporting bugs easier/more reliable.
Richard Hartmann [Thu, 19 Sep 2013 21:45:51 +0000 (23:45 +0200)]
vcsh: Add git version information on all debug runs
Richard Hartmann [Thu, 19 Sep 2013 21:41:27 +0000 (23:41 +0200)]
Merge branch 'feature--shortnames'
Conflicts:
vcsh
Richard Hartmann [Thu, 19 Sep 2013 21:37:33 +0000 (23:37 +0200)]
Merge branch 'master' of github.com:RichiH/vcsh
Richard Hartmann [Thu, 19 Sep 2013 21:36:58 +0000 (23:36 +0200)]
vcsh: Make `vcsh version` print vcsh and git version information
Richard Hartmann [Tue, 10 Sep 2013 14:14:35 +0000 (16:14 +0200)]
Merge branch 'fix--mktemp_on_OSX'
Richard Hartmann [Tue, 10 Sep 2013 14:12:02 +0000 (16:12 +0200)]
vcsh: Add comments
Richard Hartmann [Mon, 9 Sep 2013 23:34:42 +0000 (01:34 +0200)]
vcsh: Support *BSD/OSX mktemp
mktemp on *BSD/OSX expects a template whereas GNU mktemp does not.
Pass a template to mktemp to make *BSD/OSX happy.
github: fixes richih/vcsh#83
Richard Hartmann [Mon, 9 Sep 2013 07:16:54 +0000 (09:16 +0200)]
Richard Hartmann [Mon, 2 Sep 2013 22:57:24 +0000 (00:57 +0200)]
vcsh: Move up gitignore check
Richard Hartmann [Mon, 2 Sep 2013 22:54:23 +0000 (00:54 +0200)]
Merge branch 'merge--madduck/relative_worktree'
Github: Fixes richih/vcsh#26
Richard Hartmann [Mon, 2 Sep 2013 22:51:14 +0000 (00:51 +0200)]
vcsh: Add support for choosing relative or absolute core.worktree
Richard Hartmann [Mon, 2 Sep 2013 21:16:03 +0000 (23:16 +0200)]
Merge remote-tracking branch 'madduck/relative_worktrees' into merge--madduck/relative_worktree
Richard Hartmann [Thu, 29 Aug 2013 20:40:10 +0000 (22:40 +0200)]
Richard Hartmann [Thu, 29 Aug 2013 18:20:00 +0000 (20:20 +0200)]
vcsh: Implement shortnames for commands
vcsh st
will now expand to
vcsh status
Richard Hartmann [Thu, 29 Aug 2013 06:34:13 +0000 (08:34 +0200)]
vcsh: Support `vcsh status <repo>`
Richard Hartmann [Thu, 29 Aug 2013 06:29:52 +0000 (08:29 +0200)]
vcsh: Make init() less verbose
Richard Hartmann [Tue, 27 Aug 2013 06:49:20 +0000 (08:49 +0200)]
README.md: Cleanup
Richard Hartmann [Tue, 20 Aug 2013 20:43:01 +0000 (22:43 +0200)]
vcsh: Implement pre-/post-init hooks
Richard Hartmann [Mon, 19 Aug 2013 12:59:45 +0000 (05:59 -0700)]
Merge pull request #80 from ebouchut/typo
Fix typos in the README file.
Eric Bouchut [Mon, 19 Aug 2013 11:00:15 +0000 (13:00 +0200)]
Fix typos in README
Richard Hartmann [Wed, 14 Aug 2013 07:20:27 +0000 (09:20 +0200)]
README.md: More use cases
Richard Hartmann [Wed, 14 Aug 2013 07:15:01 +0000 (09:15 +0200)]
README.md: Make intro less scary
Richard Hartmann [Wed, 14 Aug 2013 06:59:27 +0000 (08:59 +0200)]
README.md: Move usage examples up
Richard Hartmann [Wed, 14 Aug 2013 06:47:27 +0000 (08:47 +0200)]
README.md: Move mr farther down
Richard Hartmann [Mon, 5 Aug 2013 15:01:16 +0000 (17:01 +0200)]
vcsh: Print debug and verbose info
Richard Hartmann [Fri, 2 Aug 2013 15:17:25 +0000 (17:17 +0200)]
%s/richih.mailinglist@gmail.com/richih@debian.org/
Richard Hartmann [Wed, 31 Jul 2013 22:19:02 +0000 (00:19 +0200)]
Merge branch 'feature--vcsh-commit'
Conflicts:
doc/vcsh.1.ronn
vcsh
Richard Hartmann [Wed, 31 Jul 2013 22:16:17 +0000 (00:16 +0200)]
Introduce `vcsh commit`
Richard Hartmann [Wed, 24 Jul 2013 20:15:09 +0000 (22:15 +0200)]
Richard Hartmann [Tue, 23 Jul 2013 23:29:04 +0000 (01:29 +0200)]
Merge branch 'feature--vcsh-status'
Richard Hartmann [Tue, 23 Jul 2013 23:26:20 +0000 (01:26 +0200)]
Introduce `vcsh status`
Richard Hartmann [Tue, 23 Jul 2013 23:15:10 +0000 (01:15 +0200)]
vcsh: Output formatting
Richard Hartmann [Tue, 23 Jul 2013 23:14:45 +0000 (01:14 +0200)]
doc/vcsh.1.ronn: Alphabetize options
Richard Hartmann [Tue, 23 Jul 2013 19:30:59 +0000 (21:30 +0200)]
Richard Hartmann [Tue, 23 Jul 2013 19:17:41 +0000 (21:17 +0200)]
Merge branch 'master' of github.com:RichiH/vcsh
Richard Hartmann [Tue, 23 Jul 2013 19:16:58 +0000 (21:16 +0200)]
doc/hooks: Ask for sample hooks