git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Added -d and -e options to the "git" script.

From
Matthias Urlichs <smurf@smurf.noris.de>
Date
Sep 19, 2005, 14:42 UTC
Message-ID
<pan.2005.09.19.14.42.44.111271@smurf.noris.de>
In-Reply-To
<u5tmzm9bbrb.fsf@lysator.liu.se>
Hi, David Kågedal wrote:
Show 6 quoted lines
> +        case "$1" in
> +        -e)	[...]
> +        *)	cmd="$1"
> +                shift
> +                case "$cmd" in
> +                -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
Umm, can we please not have two case statements nested like that?
Better written as:
Show 7 quoted lines
> +        case "$1" in
> +        -e)	[...]
> +        -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
> +             [print and die]
> +        *)	cmd="$1"
> +             shift
> +             test -x $path/git-$cmd && exec $path/git-$cmd "$@"
Thanks.
-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
It is a sad commentary on today's society that this fortune has to be
classified as "offensive" simply because it contains the word "fuck".
Previous: David Kågedal
Message 7 of 7 in “Add "--git-dir" flag to git-rev-parse”
  1. Linus TorvaldsSep 18, 2005
  2. Added -d and -e options to the "git" script.David Kågedal, Sep 19, 2005
  3. A Large Angry SCMSep 19, 2005
  4. David KågedalSep 19, 2005
  5. A Large Angry SCMSep 19, 2005
  6. David KågedalSep 19, 2005
  7. Matthias UrlichsSep 19, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.