summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2021-08-23 00:22:04 +0000
committerOri Bernstein <ori@eigenstate.org>2021-08-23 00:22:04 +0000
commit9a69a2bf2a13d89a30d863dcb19198eef2f564a3 (patch)
tree37a0175748f3e081f6f89d7036aa9e00e650c408
parentbcfee7b54757eb64cade34e476cf0dba672832f6 (diff)
downloadplan9front-9a69a2bf2a13d89a30d863dcb19198eef2f564a3.tar.xz
git/commit: remove trailing 'subst -g'
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.
-rw-r--r--sys/src/cmd/git/commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/git/commit b/sys/src/cmd/git/commit
index 5b23f7706..514c3a223 100644
--- a/sys/src/cmd/git/commit
+++ b/sys/src/cmd/git/commit
@@ -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:'
}