From: Richard Hartmann Date: Sat, 3 Dec 2011 01:28:46 +0000 (+0100) Subject: Improve vcsh support X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/2c3fe25a0f2995172bab019ca31ad69c21224191 Improve vcsh support * Make status work relative to core.worktree * Support `mr run` * Support `mr gc` --- diff --git a/lib/vcsh b/lib/vcsh index 2e0677a..fed9de4 100644 --- a/lib/vcsh +++ b/lib/vcsh @@ -13,7 +13,7 @@ vcsh_test = 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 @@ -25,6 +25,10 @@ vcsh_diff = vcsh run "$MR_REPO" git diff "$@" 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