Re: git commit -p with file arguments
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 11, 2016, 21:50 UTC
- Message-ID
- <xmqqvay26r8u.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <b9d63103-011a-9486-2fa1-dcf3a82cbe64@gmail.com>
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.