]> git.madduck.net Git - code/vcsh.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:

Add retire() as a complement to use()
authora-sk <a.skurihin@gmail.com>
Mon, 1 Jul 2013 21:13:12 +0000 (01:13 +0400)
committerRichard Hartmann <richih.mailinglist@gmail.com>
Wed, 10 Jul 2013 09:41:21 +0000 (11:41 +0200)
vcsh

diff --git a/vcsh b/vcsh
index 159feda47f9355a0e7cda30a2797b772d8d54288..15ea0984f87a0540caef0c146fb76ca481d2bf86 100755 (executable)
--- a/vcsh
+++ b/vcsh
@@ -246,6 +246,11 @@ push() {
        hook post-push
 }
 
        hook post-push
 }
 
+retire() {
+       unset GIT_WORK_TREE
+       unset VCSH_DIRECTORY
+}
+
 rename() {
        git_dir_exists
        [ -d "$GIT_DIR_NEW" ] && fatal "'$GIT_DIR_NEW' exists" 54
 rename() {
        git_dir_exists
        [ -d "$GIT_DIR_NEW" ] && fatal "'$GIT_DIR_NEW' exists" 54