From 2c3fe25a0f2995172bab019ca31ad69c21224191 Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Sat, 3 Dec 2011 02:28:46 +0100 Subject: [PATCH] Improve vcsh support * Make status work relative to core.worktree * Support `mr run` * Support `mr gc` --- lib/vcsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5