summaryrefslogtreecommitdiff
path: root/test-sigchain.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2016-01-31 06:26:16 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-02-01 13:43:30 -0800
commit5ed5f671c4193f2b9d47c08e989574903f3bf9cc (patch)
tree2447fafcbb557c51b191fde384c5ea202327eb92 /test-sigchain.c
parentcheckout-index: simplify "-z" option parsing (diff)
downloadtgif-5ed5f671c4193f2b9d47c08e989574903f3bf9cc.tar.xz
checkout-index: handle "--no-prefix" option
We use a custom callback to parse "--prefix", but it does not handle the "unset" case. As a result, passing "--no-prefix" will cause a segfault. We can fix this by switching it to an OPT_STRING, which makes "--no-prefix" counteract a previous "--prefix". Note that this assigns NULL, so we bump our default-case initialization to lower in the main function. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-sigchain.c')
0 files changed, 0 insertions, 0 deletions