Assign positional args to named vars.

This commit is contained in:
Jason Tibbitts 2011-03-24 14:02:58 -05:00
parent 024f665e91
commit 466e29c326

View file

@ -4,11 +4,13 @@
MAX_SIZE=20000
bad_file_found=0
new_rev=$3
old_rev=$2
tmp=$(mktemp /tmp/git.update.XXXXXX)
tree=$(mktemp /tmp/git.diff-tree.XXXXXX)
zero="0000000000000000000000000000000000000000"
git diff-tree -r "$2" "$3" > $tree
git diff-tree -r "$old_rev" "$new_rev" > $tree
while read old_mode new_mode old_sha1 new_sha1 status name; do
# skip lines showing parent commit
[[ -z "$new_sha1" ]] && continue;