- sum=`git hash-object "$infile1"`
- if [ -n "$infile2" ]; then
- sum=$sum`git hash-object "$infile2"`
+ if [ x"$infile1/../$infile2" = x"$lastinfiles" ]; then
+ sum=$lastinfileshash
+ else
+ sum=`git hash-object "$infile1"`
+ if [ -n "$infile2" ]; then
+ sum=$sum`git hash-object "$infile2"`
+ fi
+ lastinfileshash=$sum