Skip to content

Commit

Permalink
[PATCH] adjust git-deltafy-script to the new diff-tree output format
Browse files Browse the repository at this point in the history
Also prevent 'sort' from sorting on the sha1 which was screwing the
history listing.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Nicolas Pitre authored and Linus Torvalds committed May 24, 2005
1 parent b1c006d commit 587e494
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions git-deltafy-script
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ curr_file=""

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
Expand Down

0 comments on commit 587e494

Please sign in to comment.