summaryrefslogtreecommitdiff
path: root/test-subprocess.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2014-09-10 13:52:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-09-10 20:52:13 (GMT)
commitfe8e3b71805cd13d139b62fa5a0c75387568c9ea (patch)
tree62a7b6b4a44cbc07cc58d36bccc2d2df205471b8 /test-subprocess.c
parent0c72b98f31bf6eabd75be565a08ffcf0d8e74b1f (diff)
downloadgit-fe8e3b71805cd13d139b62fa5a0c75387568c9ea.zip
git-fe8e3b71805cd13d139b62fa5a0c75387568c9ea.tar.gz
git-fe8e3b71805cd13d139b62fa5a0c75387568c9ea.tar.bz2
Refactor type_from_string() to allow continuing after detecting an error
In the next commits, we will enhance the fsck_tag() function to check tag objects more thoroughly. To this end, we need a function to verify that a given string is a valid object type, but that does not die() in the negative case. While at it, prepare type_from_string() for counted strings, i.e. strings with an explicitly specified length rather than a NUL termination. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-subprocess.c')
0 files changed, 0 insertions, 0 deletions