From: Nguyen Thai Ngoc Duy Date: Sun, 27 Feb 2011 16:38:42 GMT Subject: Re: [PATCHv2 3/3] git-add: rename -u to -a Message-ID: In-Reply-To: <711e34a5f4761ccd1056a992df21e3389db7add7.1298821535.git.git@drmicha.warpmail.net> On Sun, Feb 27, 2011 at 10:50 PM, Michael J Gruber wrote: > @@ -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