Showing the changes to commit (1 of 1 file). Show all
Unified · Split
| @@ -43,6 +43,7 @@ fn editmsg{ · 42 unmodified lines | |||
| 43 | echo '' > $msgfile.tmp | 43 | echo '' > $msgfile.tmp |
| 44 | echo '# Commit message goes here.' >> $msgfile.tmp | 44 | echo '# Commit message goes here.' >> $msgfile.tmp |
| 45 | echo '# Author: '$name' <'$email'>' >> $msgfile.tmp | 45 | echo '# Author: '$name' <'$email'>' >> $msgfile.tmp |
| 46 | git/walk | grep -v '^T' | sed 's/^/# /g' >> $msgfile.tmp | ||
| 46 | sam $msgfile.tmp | 47 | 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 | |||
| 86 | if(! test -e /mnt/git/ctl) | 87 | if(! test -e /mnt/git/ctl) |
| 87 | git/fs | 88 | git/fs |
| 88 | mkdir -p .git/refs | 89 | mkdir -p .git/refs |
| 89 | git/walk| awk '/^[^T]/{exit "dirty"}' | 90 | if(git/walk -q){ |
| 90 | if(! ~ $status *dirty*){ | ||
| 91 | echo no changes to commit >[1=2] | 91 | echo no changes to commit >[1=2] |
| 92 | exit clean | 92 | exit clean |
| 93 | } | 93 | } |
| @@ -101,8 +101,6 @@ if(! ~ $status *dirty*){ · 7 unmodified lines | |||
| 101 | cleanup | 101 | cleanup |
| 102 | } | 102 | } |
| 103 | st=$status | 103 | st=$status |
| 104 | if(~ $st '') | ||
| 105 | echo $hash | ||
| 106 | if not{ | 104 | if not{ |
| 107 | echo 'could not commit:' $st >[1=2] | 105 | echo 'could not commit:' $st >[1=2] |
| 108 | exit $st | 106 | exit $st |