git/diff: fix -c flag

This commit is contained in:
Noam Preil 2024-10-01 12:08:29 +00:00
parent 91b19a1983
commit 0c4e4cb9e9

View file

@ -29,7 +29,10 @@ showed=()
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