Code

parse-options: abbreviation engine fix.
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Mon, 5 Nov 2007 13:15:21 +0000 (13:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Nov 2007 06:46:45 +0000 (22:46 -0800)
commit243e0614e0f8783599b20106b50eee56d0a17332
treebbf71c989e779c482a301624bfea17a8c66e4e2b
parentfe61935007b6803ce116e233316e4ff51de02be6
parse-options: abbreviation engine fix.

When an option could be an ambiguous abbreviation of two options, the code
used to error out.  Even if an exact match would have occured later.

Test and original patch by Pierre Habouzit.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c
t/t0040-parse-options.sh
test-parse-options.c