]> git.lizzy.rs Git - plan9front.git/commitdiff
git/commit: remove trailing 'subst -g'
authorOri Bernstein <ori@eigenstate.org>
Mon, 23 Aug 2021 00:22:04 +0000 (00:22 +0000)
committerOri Bernstein <ori@eigenstate.org>
Mon, 23 Aug 2021 00:22:04 +0000 (00:22 +0000)
the subst utility no longer supports a '-g'
flag, but this was left behind in commit;

this means that the lines listing modified
files were not correctly commented in the
commit header.

This is mostly harmless, but when using an
editor like sam to edit the commit message,
the modified lines would have to be removed
manually.

sys/src/cmd/git/commit

index 5b23f7706a52966aca8261e6bd9c86bfe27ec175..514c3a223decfaed9e24d34e07cc547f3704a816 100644 (file)
@@ -58,7 +58,7 @@ fn editmsg{
                        echo '#'
                        for(p in $parents)
                                echo '# parent:' $p
-                       git/walk -fAMR $files | subst -g '^' '# '
+                       git/walk -fAMR $files | subst '^' '# '
                        echo '#'
                        echo '# Commit message:'
                }