Browse Source

Print simple message on snapshot creation

pull/1/head
10sr 9 years ago
parent
commit
4f76b6fda6
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      setup.sh

+ 2
- 1
setup.sh View File

@@ -248,13 +248,14 @@ git checkout master && git merge --no-ff --stat --verbose -'"


$_gc alias.todo "grep -nH -E -i 'todo:|note:|fixme:'" $_gc alias.todo "grep -nH -E -i 'todo:|note:|fixme:'"


$_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.snap '! gitdir="`git rev-parse --git-dir`" && : >>"$gitdir"/logs/refs/snapshot && cmt=`git stash create` && test -n "$cmt" && git update-ref refs/snapshot $cmt && echo Snapshot created: $cmt'


#$_gc alias.wc "!git ls-files -z | xargs -0 wc" #$_gc alias.wc "!git ls-files -z | xargs -0 wc"
# $_gc push.default "simple" # $_gc push.default "simple"
if $iswindows; then if $iswindows; then
$_gc core.fileMode false $_gc core.fileMode false
fi fi

} }


############################# #############################


Loading…
Cancel
Save