parse-options: Allow abbreviated options when unambiguous
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Sun, 14 Oct 2007 16:54:06 +0000 (17:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Oct 2007 04:03:30 +0000 (21:03 -0700)
commit7f275b91520d31bfbe43ec5a9bbaf8ac6e663ce0
tree3e21e4a89617c56b47b7d4d1f2312198a8641de9
parent0ce865b134f8ccd60f6e584744144b0978a9fdf2
parse-options: Allow abbreviated options when unambiguous

When there is an option "--amend", the option parser now recognizes
"--am" for that option, provided that there is no other option beginning
with "--am".

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
parse-options.c
t/t0040-parse-options.sh