From 50e4e3ca655c3e4864e348ea3a14dad62b1e86e3 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 22 Dec 2014 16:49:17 +0900 Subject: [PATCH] Add git alias snap --- setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 737cda3..eebb494 100755 --- a/setup.sh +++ b/setup.sh @@ -248,7 +248,9 @@ git checkout master && git merge --no-ff --stat --verbose -'" $_gc alias.todo "grep -nH -E -i 'todo:|note:|fixme:'" - #$_gc alias.wc "!git ls-files -z | xargs -0 wc" + $_gc alias.snap '! gitdir="`git rev-parse --git-dir`" && : >>"$gitdir"/logs/refs/snapshot && git update-ref refs/snapshot $(git stash create)' + +#$_gc alias.wc "!git ls-files -z | xargs -0 wc" # $_gc push.default "simple" if $iswindows; then $_gc core.fileMode false