diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-04-12 13:21:44 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-11 12:48:09 +0900 |
commit | a46a84829650fbe6077e5a33f4ac1c9d2041d1df (patch) | |
tree | 2b22a5ff08e98bdabb9a586aa391d6d4ea692155 /unix-socket.h | |
parent | describe tests: improve test for --work-tree & --dirty (diff) | |
download | tgif-a46a84829650fbe6077e5a33f4ac1c9d2041d1df.tar.xz |
describe tests: refactor away from glob matching
Change the glob matching via a "case" statement to a "test_cmp" after
we've stripped out the hash-specific g<hash-abbrev>
suffix. 5312ab11fbf (Add describe test., 2007-01-13).
This means that we can use test_cmp to compare the output. I could
omit the "-8" change of e.g. "A-*" to "A-8-gHASH", but I think it
makes sense to test that here explicitly. It means you need to add new
tests to the bottom of the file, but that's not a burden in this case.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unix-socket.h')
0 files changed, 0 insertions, 0 deletions