History

Cleanups for commit.

Ori Bernstein committed 7 years ago

Commit b5803921 parent 88feb2c1 file · +2 −4Browse files

Showing the changes to commit (1 of 1 file). Show all

Unified · Split

commit+2−4
@@ -43,6 +43,7 @@ fn editmsg{ · 42 unmodified lines
43 echo '' > $msgfile.tmp43 echo '' > $msgfile.tmp
44 echo '# Commit message goes here.' >> $msgfile.tmp44 echo '# Commit message goes here.' >> $msgfile.tmp
45 echo '# Author: '$name' <'$email'>' >> $msgfile.tmp45 echo '# Author: '$name' <'$email'>' >> $msgfile.tmp
46 git/walk | grep -v '^T' | sed 's/^/# /g' >> $msgfile.tmp
46 sam $msgfile.tmp47 sam $msgfile.tmp
47 if(! test -s $msgfile.tmp || ~ `{wc -l <{grep -v '^[ ]*[\n#]' $msgfile.tmp}} 0){48 if(! test -s $msgfile.tmp || ~ `{wc -l <{grep -v '^[ ]*[\n#]' $msgfile.tmp}} 0){
48 echo 'cancelling commit: empty message' >[1=2]49 echo 'cancelling commit: empty message' >[1=2]
@@ -86,8 +87,7 @@ if(! cd `{git/conf -r}) · 37 unmodified lines
86if(! test -e /mnt/git/ctl)87if(! test -e /mnt/git/ctl)
87 git/fs88 git/fs
88mkdir -p .git/refs89mkdir -p .git/refs
89git/walk| awk '/^[^T]/{exit "dirty"}'90if(git/walk -q){
90if(! ~ $status *dirty*){
91 echo no changes to commit >[1=2]91 echo no changes to commit >[1=2]
92 exit clean92 exit clean
93}93}
@@ -101,8 +101,6 @@ if(! ~ $status *dirty*){ · 7 unmodified lines
101 cleanup101 cleanup
102}102}
103st=$status103st=$status
104if(~ $st '')
105 echo $hash
106if not{104if not{
107 echo 'could not commit:' $st >[1=2]105 echo 'could not commit:' $st >[1=2]
108 exit $st106 exit $st