ref: 0c4e4cb9e92e372dc0cb3df182790dc0b1c757ad
parent: 91b19a19838036c21c25c85ec89e4c986f9a35aa
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
--
⑨