Commit cffb5360 authored by hydrargyrum's avatar hydrargyrum

git-blamed-diff: fix comparison between working directory and HEAD

parent 57cd8631
......@@ -37,7 +37,9 @@ tmpa=$(mktemp blame.XXXXXX)
tmpb=$(mktemp blame.XXXXXX)
blame "$1" "$arev" > "$tmpa"
blame "$1" "$brev" > "$tmpb"
# $brev should not be quoted
# if it's empty, it should not take one argument
blame "$1" $brev > "$tmpb"
# -w to ignore git-blame's pesky alignment
diff -w -u "$tmpa" "$tmpb" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment