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