Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Sanity check of git-commit patch, was Re: [PATCH] Making CFLAGS compilant with GNU Coding Standards

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:03

Johannes Schindelin [off-list ref] writes:
quoted
True.  My bad old habit.
An elegant method to do that:

case --some-long-option in "$1"*) ..; esac
You are almost correct, but you need to realize that I generate
that long "case -s|--s|--so|--som|..." chain using a script that
takes all potential option names as its arguments, and makes
case arms that contain only unambiguous ones, so that I can
handle --some-long-option and --some-other-long-option sensibly.

Also you forgot to grok --some-option-with-args=* in your
version ;-).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help