Re: [PATCHv2 3/3] git-add: rename -u to -a
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Feb 27, 2011, 16:38 UTC
- Message-ID
- <AANLkTintuaM+p7XKmTy+hOa80nkbph7MP00cvEA+oHZJ@mail.gmail.com>
- In-Reply-To
- <711e34a5f4761ccd1056a992df21e3389db7add7.1298821535.git.git@drmicha.warpmail.net>
On Sun, Feb 27, 2011 at 10:50 PM, Michael J Gruber <git@drmicha.warpmail.net> wrote:
Show 8 quoted lines
> @@ -320,8 +320,9 @@ static struct option builtin_add_options[] = {
> OPT_BOOLEAN('p', "patch", &patch_interactive, "select hunks interactively"),
> OPT_BOOLEAN('e', "edit", &edit_interactive, "edit current diff and apply"),
> OPT__FORCE(&ignored_too, "allow adding otherwise ignored files"),
> - OPT_BOOLEAN('u', "update", &take_worktree_changes, "update tracked files"),
> + { OPTION_BOOLEAN, 'u', "update", &take_worktree_changes, NULL, "update tracked files", PARSE_OPT_HIDDEN | PARSE_OPT_NOARG },
> OPT_BOOLEAN('N', "intent-to-add", &intent_to_add, "record only the fact that the path will be added later"),
> + OPT_BOOLEAN('a', "all-tracked", &take_worktree_changes, "add changes from all tracked files"),Should -u now print warnings to help script writers migrate to -a? Or do we plan to keep hidden -u forever?
-- Duy