awk '
BEGIN {
split("\b\b\b\b\b. . . . . \b- \b\b- \b\b- \b\b- \b\b- \b= = = = =", st, " ")
i=0
}
/^[0-9]/ {
sub(/:.*/, "");
d=$0;
next;
}
/^&/ {
sub(/&/, "");
f=$0
substr($0, 2, length($0) - 1);
next;
}
/^+/ { a="A"; }
/^-/ { a="D"; }
/^[\+-]/ {
fflush("")
sub(/[\+-]/, "")
cmd="echo \"" $0 "\" | md5sum | cut -f1 -d \" \" | sed -e \"s@[32|16]@/sd@g\""
cmd | getline str;
close(cmd)
print ""
system("echo -ne \"" st[i++] "\" >&2")
if (i > 16) i=0
}
' $gitdiff | \
sed -e 's/\(filename="[^"]"\)/\1/'
* This source code was highlighted with Source Code Highlighter.