git: 9front

Download patch

ref: 234277fd98ae53681f0bfb55b9d5bf92eaa49a66
parent: 9af980f21bb587e2d91a25995aa974b0bc05fa52
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Aug 22 20:22:04 EDT 2021

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.

--- a/sys/src/cmd/git/commit
+++ b/sys/src/cmd/git/commit
@@ -58,7 +58,7 @@
 			echo '#'
 			for(p in $parents)
 				echo '# parent:' $p
-			git/walk -fAMR $files | subst -g '^' '# '
+			git/walk -fAMR $files | subst '^' '# '
 			echo '#'
 			echo '# Commit message:'
 		}
--