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

Re: [1.8.0 RFD] Homogeneous use of short options

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Feb 15, 2011, 07:18 UTC
Message-ID
<4D5A28C1.1080803@drmicha.warpmail.net>
In-Reply-To
<871v3a2k7i.fsf@catnip.gol.com>
Miles Bader venit, vidit, dixit 15.02.2011 01:52:
Show 28 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>>> add -A: Why capital A? Compare commit -a etc.
>>
>> IIRC, this was in anticipation for a similar interface to include
>> _new_ files in the commit in the form of "commit -A", which _is_
>> different from the existing "commit -a".
> 
> I look up the meaning of "git commit -u":
> 
> $ git commit --help
> ...
>        -u[<mode>], --untracked-files[=<mode>]
>            Show untracked files (Default: all).
> 
>            The mode parameter is optional, and is used to specify the handling
>            of untracked files.
> 
>            The possible options are:
> 
>            ·    no - Show no untracked files
>            ·    normal - Shows untracked files and directories
>            ·    all - Also shows individual files in untracked directories.
> 
>                See git-config(1) for configuration variable used to change the
>                default for when the option is not specified.
> 
> I guess it means it only affects the status-display for --dry-run, but
> it seems a little confusing to not say that explicitly...

I think it is confusing only until you have used "commit" without "-m" for the first time - and only if you overlooked the 3 occurences of "show" ;)

Michael
Previous: Miles Bader
Message 6 of 6 in “[1.8.0 RFD] Homogeneous use of short options”
  1. Michael J GruberFeb 14, 2011
  2. Nguyen Thai Ngoc DuyFeb 14, 2011
  3. Jay SoffianFeb 14, 2011
  4. Junio C HamanoFeb 14, 2011
  5. Miles BaderFeb 15, 2011
  6. Michael J GruberFeb 15, 2011

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.