Re: [PATCH] stash: use named constant when parsing "--all"
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 ;-).