madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://<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 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://"]
  insteadOf = madduck:

restore old GIT_* variables on exit
authormartin f. krafft <>
Tue, 17 Jun 2008 08:19:15 +0000 (10:19 +0200)
committermartin f. krafft <>
Tue, 17 Jun 2008 08:19:15 +0000 (10:19 +0200)

index cd6d205..b9f4b5d 100755 (executable)
@@ -31,9 +31,17 @@ if [ ! -d "$FGIT_BASE/${1}.git" ]; then
   return 2
 export GIT_DIR="$FGIT_BASE/${1}.git"
 export GIT_WORK_TREE="$GIT_DIR/$(git config --get core.worktree)"
 git status
-PS1="%S{${0##*/}:$1}%s$PS1" $SHELL -i
+PS1="%S{${0##*/}:$1}%s$PS1" $SHELL -i || :
+[ -z "$GIT_DIR" ] && unset GIT_DIR
+[ -z "$GIT_WORK_TREE" ] && unset GIT_WORK_TREE