git: 9front

Download patch

ref: 7fec06f40e0a7ed9787c8d0cd14a7619a1fca228
parent: 342641abc4b8e03a28e7b071d3b1f24c1b653ac2
author: Noam Preil <noam@pixelhero.dev>
date: Tue Oct 1 08:08:29 EDT 2024

git/diff: fix -c flag

--- a/sys/src/cmd/git/diff
+++ b/sys/src/cmd/git/diff
@@ -29,7 +29,10 @@
 mntgen /mnt/scratch
 bind $branch/tree/ /mnt/scratch/a
 bind . /mnt/scratch/b
-for(f in `$nl{git/walk -c -f$filt $cparam $files}){
+bparam=()
+if(~ $#commit 1)
+	bparam=(-b $commit)
+for(f in `$nl{git/walk $bparam -c -f$filt $cparam $files}){
 	if(~ $#showed 0){
 		echo diff `{git/query $commit} uncommitted
 		showed=1
--