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

Re: [PATCH] stash: use named constant when parsing "--all"

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 5, 2026, 05:27 UTC
Message-ID
<xmqqzewsogxs.fsf@gitster.g>
In-Reply-To
<06b58ae0a1d81f4d1518eadecc3385072a72155a.1791108351.git.phillip.wood@dunelm.org.uk>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 13 quoted lines
> From: Phillip Wood <phillip.wood@dunelm.org.uk>
>
> The code that stashes all untracked files compares the value of the
> "include_untracked" variable to the constant "INCLUDE_ALL_FILES",
> however the option parsing code for "--all" uses a hard coded integer
> instead. Replace the integer with the named constant.
>
> Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
> ---
> -			    N_("include ignore files"), 2),
> +			    N_("include ignore files"), INCLUDE_ALL_FILES),
> -			    N_("include ignore files"), 2),
> +			    N_("include ignore files"), INCLUDE_ALL_FILES),
So obviously right.  I wish all patches were like this ;-).
Previous: Phillip Wood
Message 2 of 2 in “stash: use named constant when parsing "--all"”
  1. stash: use named constant when parsing "--all"Phillip Wood, Oct 4, 2026
  2. Junio C HamanoOct 5, 2026

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.