Assign positional args to named vars.
This commit is contained in:
parent
024f665e91
commit
466e29c326
1 changed files with 3 additions and 1 deletions
|
@ -4,11 +4,13 @@
|
||||||
MAX_SIZE=20000
|
MAX_SIZE=20000
|
||||||
|
|
||||||
bad_file_found=0
|
bad_file_found=0
|
||||||
|
new_rev=$3
|
||||||
|
old_rev=$2
|
||||||
tmp=$(mktemp /tmp/git.update.XXXXXX)
|
tmp=$(mktemp /tmp/git.update.XXXXXX)
|
||||||
tree=$(mktemp /tmp/git.diff-tree.XXXXXX)
|
tree=$(mktemp /tmp/git.diff-tree.XXXXXX)
|
||||||
zero="0000000000000000000000000000000000000000"
|
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
|
while read old_mode new_mode old_sha1 new_sha1 status name; do
|
||||||
# skip lines showing parent commit
|
# skip lines showing parent commit
|
||||||
[[ -z "$new_sha1" ]] && continue;
|
[[ -z "$new_sha1" ]] && continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue