diff options
author | Jeff King <peff@peff.net> | 2016-01-31 06:26:16 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-01 13:43:30 -0800 |
commit | 5ed5f671c4193f2b9d47c08e989574903f3bf9cc (patch) | |
tree | 2447fafcbb557c51b191fde384c5ea202327eb92 /progress.c | |
parent | checkout-index: simplify "-z" option parsing (diff) | |
download | tgif-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 'progress.c')
0 files changed, 0 insertions, 0 deletions