summaryrefslogtreecommitdiff
path: root/t/t0200
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2019-08-18 20:04:08 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-08-19 15:04:57 -0700
commitfee49308a1a6a3270a52b31275562f3e92f27d0a (patch)
treea154cb6e825f2168b17e097138bcbbc1f8f4d854 /t/t0200
parentbuiltin/rev-parse: switch to use the_hash_algo (diff)
downloadtgif-fee49308a1a6a3270a52b31275562f3e92f27d0a.tar.xz
blame: remove needless comparison with GIT_SHA1_HEXSZ
When faking a working tree commit, we read in lines from MERGE_HEAD into a strbuf. Because the strbuf is NUL-terminated and get_oid_hex will fail if it unexpectedly encounters a NUL, the check for the length of the line is unnecessary. There is no optimization benefit from this case, either, since on failure we call die. Remove this check, since it is no longer needed. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0200')
0 files changed, 0 insertions, 0 deletions