#!/bin/sh test_description='test unique sha1 abbreviation on "index from..to" line' . ./test-lib.sh if ! test_have_prereq SHA1 then skip_all='not using SHA-1 for objects' test_done fi cat >expect_initial <expect_update < foo && git add foo && git commit -m "initial" && git cat-file -p HEAD: > actual && test_cmp expect_initial actual && echo 11742 > foo && git commit -a -m "update" && git cat-file -p HEAD: > actual && test_cmp expect_update actual ' cat >expect < actual && test_cmp expect actual ' test_done