* [PATCH] adjust git-deltafy-script to the new diff-tree output format
@ 2005-05-24 1:58 Nicolas Pitre
0 siblings, 0 replies; only message in thread
From: Nicolas Pitre @ 2005-05-24 1:58 UTC (permalink / raw)
To: Linus Torvalds; +Cc: git
Also prevent 'sort' from sorting on the sha1 which was screwing the
history listing.
Signed-off-by: Nicolas Pitre <nico@cam.org>
diff --git a/git-deltafy-script b/git-deltafy-script
--- a/git-deltafy-script
+++ b/git-deltafy-script
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-24 1:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-24 1:58 [PATCH] adjust git-deltafy-script to the new diff-tree output format Nicolas Pitre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).