]> git.madduck.net Git - code/myrepos.git/commitdiff

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:

Improve vcsh support
authorRichard Hartmann <richih.mailinglist@gmail.com>
Sat, 3 Dec 2011 01:28:46 +0000 (02:28 +0100)
committerJoey Hess <joey@kitenet.net>
Sat, 3 Dec 2011 02:36:21 +0000 (22:36 -0400)
* Make status work relative to core.worktree
* Support `mr run`
* Support `mr gc`

lib/vcsh

index 2e0677aaa669cffa0fa55fac2fd2480e6da6c316..fed9de4b8d381a534930176c467027052fc03cea 100644 (file)
--- a/lib/vcsh
+++ b/lib/vcsh
@@ -13,7 +13,7 @@ vcsh_test =
 
 vcsh_update = vcsh run "$MR_REPO" git pull "$@"
 
 
 vcsh_update = vcsh run "$MR_REPO" git pull "$@"
 
-vcsh_status = vcsh run "$MR_REPO" git status -s "$@" || true
+vcsh_status = cd $(vcsh run "$MR_REPO" git config --get core.worktree); vcsh run "$MR_REPO" git status -s "$@" || true
 
 vcsh_commit = vcsh run "$MR_REPO" git commit -a "$@" && vcsh run "$MR_REPO" git push --all
 
 
 vcsh_commit = vcsh run "$MR_REPO" git commit -a "$@" && vcsh run "$MR_REPO" git push --all
 
@@ -25,6 +25,10 @@ vcsh_diff = vcsh run "$MR_REPO" git diff "$@"
 
 vcsh_log = vcsh run "$MR_REPO" git log "$@"
 
 
 vcsh_log = vcsh run "$MR_REPO" git log "$@"
 
+vcsh_run = vcsh run "$MR_REPO" "$@"
+
+vcsh_gc = vcsh run "$MR_REPO" git gc "$@"
+
 vcsh_register =
        url="`LC_ALL=C vcsh run "$MR_REPO" git config --get remote.origin.url`" || true
        if [ -z "$url" ]; then
 vcsh_register =
        url="`LC_ALL=C vcsh run "$MR_REPO" git config --get remote.origin.url`" || true
        if [ -z "$url" ]; then