projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Clean up diff_setup() to make it more extensible.
[git.git]
/
git-deltafy-script
diff --git
a/git-deltafy-script
b/git-deltafy-script
index
c23f215
..
f63cf07
100644
(file)
--- a/
git-deltafy-script
+++ b/
git-deltafy-script
@@
-23,8
+23,9
@@
curr_file=""
git-rev-list HEAD |
git-diff-tree -r --stdin |
git-rev-list HEAD |
git-diff-tree -r --stdin |
-sed -n '/^\*/ s/^.*->\(.\{41\}\)\(.*\)$/\2 \1/p' | sort | uniq |
-while read file sha1; do
+awk '/^:/ { if ($5 == "M" || $5 == "N") print $4, $6 }' |
+LC_ALL=C sort -s -k 2 | uniq |
+while read sha1 file; do
if [ "$file" == "$curr_file" ]; then
list="$list $sha1"
else
if [ "$file" == "$curr_file" ]; then
list="$list $sha1"
else