t4041 (diff-submodule-option): parse digests sensibly
commit20fa53855e5479e9903047ba18cc247fd4519db4
authorRamkumar Ramachandra <artagnon@gmail.com>
Fri, 30 Nov 2012 11:37:34 +0000 (30 17:07 +0530)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 Dec 2012 09:58:40 +0000 (2 01:58 -0800)
treec6dc62c5cefb3d26446cd30b8eaac5618a0040b2
parent3b13af9d6cfab0d66cae386cbdc924030ad7a1e8
t4041 (diff-submodule-option): parse digests sensibly

`git rev-list --max-count=1 HEAD` is a roundabout way of saying `git
rev-parse --verify HEAD`; replace a bunch of instances of the former
with the latter.  Also, don't unnecessarily `cut -c1-7` the rev-parse
output when the `--short` option is available.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4041-diff-submodule-option.sh