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
4343 echo '' > $msgfile.tmp
4444 echo '# Commit message goes here.' >> $msgfile.tmp
4545 echo '# Author: '$name' <'$email'>' >> $msgfile.tmp
46+ git/walk | grep -v '^T' | sed 's/^/# /g' >> $msgfile.tmp
4647 sam $msgfile.tmp
4748 if(! test -s $msgfile.tmp || ~ `{wc -l <{grep -v '^[ ]*[\n#]' $msgfile.tmp}} 0){
4849 echo 'cancelling commit: empty message' >[1=2]
@@ -86,8 +87,7 @@ if(! cd `{git/conf -r}) · 37 unmodified lines
8687 if(! test -e /mnt/git/ctl)
8788 git/fs
8889 mkdir -p .git/refs
89−git/walk| awk '/^[^T]/{exit "dirty"}'
90−if(! ~ $status *dirty*){
90+if(git/walk -q){
9191 echo no changes to commit >[1=2]
9292 exit clean
9393 }
@@ -101,8 +101,6 @@ if(! ~ $status *dirty*){ · 7 unmodified lines
101101 cleanup
102102 }
103103 st=$status
104−if(~ $st '')
105− echo $hash
106104 if not{
107105 echo 'could not commit:' $st >[1=2]
108106 exit $st