From 807bc1ae026ecf13cb078dea21a3fd1b8d0aa4c9 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 22 Dec 2014 16:52:58 +0900 Subject: [PATCH] Update git alias snap --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index eebb494..61cb5b5 100755 --- a/setup.sh +++ b/setup.sh @@ -248,7 +248,7 @@ git checkout master && git merge --no-ff --stat --verbose -'" $_gc alias.todo "grep -nH -E -i 'todo:|note:|fixme:'" - $_gc alias.snap '! gitdir="`git rev-parse --git-dir`" && : >>"$gitdir"/logs/refs/snapshot && git update-ref refs/snapshot $(git stash create)' + $_gc alias.snap '! gitdir="`git rev-parse --git-dir`" && : >>"$gitdir"/logs/refs/snapshot && cmt=`git stash create` && test -n "$cmt" && git update-ref refs/snapshot $cmt' #$_gc alias.wc "!git ls-files -z | xargs -0 wc" # $_gc push.default "simple"