X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/6ac25115f169a706bf38c73c2cde2e27add8073f..5407b2658a665845476984f7645317565e397394:/lib/vcsh?ds=sidebyside 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