History

git: handle absolute paths better

we were catting $gitrel onto absolute paths. stop it.

Ori Bernstein committed 5 years ago

Commit bd6837e1 parent a76f63d3 files · +8 −7Browse files

Showing the changes to sys/src/cmd/git/diff (1 of 3 files). Show all

Unified · Split

sys/src/cmd/git/diff+1−1
@@ -12,7 +12,7 @@ if(~ $#commit 0) · 11 unmodified lines
12 12
13files=()13files=()
14if(! ~ $#* 0)14if(! ~ $#* 0)
15 files=`{cleanname $gitrel/$*}15 files=`{cleanname -d $gitrel $*}
16 16
17branch=`{git/query -p $commit}17branch=`{git/query -p $commit}
18if(~ $summarize 1){18if(~ $summarize 1){