diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-09-20 11:10:14 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-03 21:17:16 -0800 |
commit | cd3c095caa6f61b4a2952e7ea167938c5b69bc3d (patch) | |
tree | e37f337b8953bf175a515016bcd059bb731f79de /t/test-lib.sh | |
parent | 902f235378cb2b2f6dd5dd664b9630c95321f0ae (diff) | |
download | git-cd3c095caa6f61b4a2952e7ea167938c5b69bc3d.tar.gz |
tests: move convenience regexp to match object names to test-lib.sh
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index ec3336aba5..05efe1faa3 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -74,6 +74,12 @@ case $(echo $GIT_TRACE |tr "[A-Z]" "[a-z]") in ;; esac +# Convenience +# +# A regexp to match 5 and 40 hexdigits +_x05='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]' +_x40="$_x05$_x05$_x05$_x05$_x05$_x05$_x05$_x05" + # Each test should start with something like this, after copyright notices: # # test_description='Description of this test... |