Merge branch 'jc/fix-tree-walk'
[gitweb.git] / t / test-lib.sh
index c1476f9a2391396a201a919025963b82f7e14217..baa4093073564e081dcf6bc692910257663c9b03 100644 (file)
@@ -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...