8 git
--version > /dev
/null
12 echo >&2 "Git not found. It's either not installed or not in \$PATH"
16 version
=`git --version | grep -o "[12]\.[5-9]\.[0-9]"`
19 echo "Wrong git version. $prog needs git 1.5.0 or higher, but "`git --version`" found."
26 echo "Usage:" `basename $0`" [OPTIONS] <sha1>"
30 echo " -a commit all differences without being asked"
31 echo " WARNING: use this option with caution"
32 echo " -V show version information"
39 echo "$PROGNAME: "`basename $0`-$VERSION
57 if test $i -gt $select
65 if test $i -eq $select
76 echo $word |
grep -E "[a-f0-9]{40}" >/dev
/null
80 git log
-n 1 --pretty=format
:"%s" $word
86 echo "Interactive git to cvs commiter"
88 echo "Please use CTR+<RETURN> in the menu select prompt"
126 git-cherry origin |
sed -n 's/^+ //p' |
xargs -l1 gc-commit
-c
133 git-branch
2>/dev
/null
136 echo >&2 "not a repository"
143 echo "Menu ---------------------------------------"
144 echo "Use CTRL+<RETURN>"
145 WORDS
="`git cherry origin | grep -o -E "[0-9a-f]{40}"` exit help"; selecting
; sha
=$RESULT
151 if test "$sha" = "exit"
155 if test "$sha" = "help"
162 WORDS
="log diff commit abort"; selecting
; action
=$RESULT
163 if test "$action" = "log"
166 elif test "$action" = "diff"
169 elif test "$action" = "commit"
176 elif test "$action" = "abort"