Permalink
Browse files

git-blamestat: use ls-files instead of ls-tree

  • Loading branch information...
1 parent 094072a commit a733937408c699829fa8dbcd099a2b4a54716f2c @falconindy committed Jun 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 git-blamestat
View
@@ -7,7 +7,7 @@
#
IFS=$'\n' read -r -d '' -a all < \
- <(git ls-tree --name-only -r HEAD | file -f - | sed '/: .*text/s/: .*//')
+ <(git ls-files | file -f - | sed '/: .*text/s/: .*//')
for file in "${@:-${all[@]}}"; do git blame -M -C "$file"; done |
sed -r 's/.*\((.*)[0-9]{4}-[0-9]{2}-[0-9]{2} .*/\1/;s/ +$//' |

0 comments on commit a733937

Please sign in to comment.