aboutsummaryrefslogtreecommitdiffstats
path: root/t/t4002-diff-basic.sh
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-05-13 02:24:14 +0000
committerJunio C Hamano <gitster@pobox.com>2018-05-14 11:02:01 +0900
commitbd981d5fc33677b4f074bac309ce64b39ba9d02e (patch)
tree71bcb62f8cf722c867f70d30df5a0e70bc102615 /t/t4002-diff-basic.sh
parentt: switch $_z40 to $ZERO_OID (diff)
downloadgit-bd981d5fc33677b4f074bac309ce64b39ba9d02e.tar.gz
git-bd981d5fc33677b4f074bac309ce64b39ba9d02e.zip
t/test-lib: introduce OID_REGEX
Currently we have a variable, $_x40, which contains a regex that matches a full 40-character hex constant. However, with NewHash, we'll have object IDs that are longer than 40 characters. In such a case, $_x40 will be a confusing name. Create a $OID_REGEX variable which will always reflect a regex matching the appropriate object ID, regardless of the length of the current hash. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4002-diff-basic.sh')
0 files changed, 0 insertions, 0 deletions