Re: git commit -p with file arguments
- From
Jacob Keller <jacob.keller@gmail.com>
- Date
- Sep 11, 2016, 22:05 UTC
- Message-ID
- <CA+P7+xqdWbERVQenZJTLyirBy2VFrKV2-uBOxB1CwcWs+gy43A@mail.gmail.com>
- In-Reply-To
- <xmqqvay26r8u.fsf@gitster.mtv.corp.google.com>
On Sun, Sep 11, 2016 at 2:50 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
> Jakub Narębski <jnareb@gmail.com> writes: > >> I wonder, if git-commit is to acquire such feature, what would be the >> best interface. "git commit :0:./<path>"? "git commit -o -p <path>" >> (that is, "git commit --only --patch <pathspec>")? > > Just do "git reset && git commit -p <pathspec>", I would say. > Anything more elaborate would just confuse the end users. >
Yes, I'm actually confused by "git commit <files>" *not* usinng what's in the index already, so I think that isn't intuitive as is.
Thanks, Jake