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

Re: [PATCH] Documentation: default -u<mode> is 'normal'

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 21, 2011, 18:46 UTC
Message-ID
<7vei71jkdk.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110219163008.GA16117@localhost>
Clemens Buchacher <drizzd@aon.at> writes:
> git-commit's and git-status' default untracked status mode is
> 'normal', not 'all'.
>
> Signed-off-by: Clemens Buchacher <drizzd@aon.at>

I wouldn't say there is no problem in this part of the documentation, but I think the "default" you are touching is not entirely incorrect. It is talking about what happens when you give only -u without saying <mode>, and I think <mode> _does_ default to 'all'.

When the command is _not_ given any "-u" option, the behaviour of it does default to "handle untracked files in the 'normal'" mode.

Show 8 quoted lines
> ...
>  -u[<mode>]::
>  --untracked-files[=<mode>]::
> -	Show untracked files (Default: 'all').
> +	Show untracked files (Default: 'normal').
>  +
>  The mode parameter is optional, and is used to specify
>  the handling of untracked files.
So either
	Show untracked files (<mode> defaults to 'all')
        The mode parameter is optional, and is used to specify the
        handling of untracked files; when -u is not used, the default is
        'normal', i.e. _show x and y and z_
(I'm too lazy to look x/y/z up, so please fill in the blanks).
or
	Show untracked files.
        The mode parameter is optional (defaults to 'all'), and is used to
        specify the handling of untracked files; when -u is not used, the
        default is 'normal', i.e. _show x and y and z_

I don't have a strong preference either way, but if I had to choose I probably would go with the latter.

Previous: Clemens BuchacherNext: Clemens Buchacher
Message 2 of 3 in “Documentation: default -u<mode> is 'normal'”
  1. Documentation: default -u<mode> is 'normal'Clemens Buchacher, Feb 19, 2011
  2. Junio C HamanoFeb 21, 2011
  3. Documentation: clarify -u<mode> option defaultsClemens Buchacher, Feb 21, 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.