From: Jakub Narebski Date: Sat, 12 May 2007 01:06:03 GMT Subject: Re: [FAQ?] Rationale for git's way to manage the index Message-ID: <200705120306.03806.jnareb@gmail.com> In-Reply-To: <7vlkfu98nn.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > Jakub Narebski writes: > >> -'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--] ... >> +'git-add' [-n] [-v] [-f] (-u [[--] ...] | [--] ...) > > I do not think this is correct; does -u take optionally path and > when path is ambiguous you can add -- to disambiguate? [...] With *current* implementation you should take previous patch, amended, with the following synopsis: -'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--] ... +'git-add' [-n] [-v] [-f] (-u | [--] ...) +'git-add' (--interactive | -i) > Of course, I would prefer a patch to allow use of paths with -u > even more, but that is what I already said ;-). The following synopsis is for such case: -'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--] ... +'git-add' [-n] [-v] [-f] (-u [[--] ...] | [--] ...) +'git-add' (--interactive | -i) This is for "-u take optionally path and when path is ambiguous you can add -- to disambiguate", for example if you have '--interactive' file. -- Jakub Narebski Poland