mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
git-guilt: protect against encoding issues with LC_ALL=C
This commit is contained in:
parent
500ea2b119
commit
2dc5d5104e
|
|
@ -45,10 +45,10 @@ do
|
|||
test -n "$DEBUG" && echo "git blame $file"
|
||||
# $1 - since $2 - until
|
||||
git blame $NOT_WHITESPACE --line-porcelain "$1" -- "$file" 2> /dev/null |
|
||||
sed -n "$PATTERN" | sort | uniq -c | sed 's/^\(.\)/- \1/' >> $MERGED_LOG
|
||||
LC_ALL=C sed -n "$PATTERN" | sort | uniq -c | LC_ALL=C sed 's/^\(.\)/- \1/' >> $MERGED_LOG
|
||||
# if $2 not given, use current commit as "until"
|
||||
git blame $NOT_WHITESPACE --line-porcelain "${2-@}" -- "$file" 2> /dev/null |
|
||||
sed -n "$PATTERN" | sort | uniq -c | sed 's/^\(.\)/+ \1/' >> $MERGED_LOG
|
||||
LC_ALL=C sed -n "$PATTERN" | sort | uniq -c | LC_ALL=C sed 's/^\(.\)/+ \1/' >> $MERGED_LOG
|
||||
done
|
||||
|
||||
DEBUG="$DEBUG" awk '
|
||||
|
|
|
|||
Loading…
Reference in a new issue