git commit --amend --only -- nevertheless commits staged changes

2012-07-10 Thread Marc Strapetz
When using git commit --amend --only --message message --, I'd expect to have just the commit message of my last commit changed, according to the man page: --only Make a commit only from the paths specified on the command line, disregarding any contents that have been staged so far. [...] If this

Re: git commit --amend --only -- nevertheless commits staged changes

2012-07-10 Thread Jeff King
On Tue, Jul 10, 2012 at 12:41:13PM +0200, Marc Strapetz wrote: When using git commit --amend --only --message message --, I'd expect to have just the commit message of my last commit changed, according to the man page: --only Make a commit only from the paths specified on the command line,

Re: git commit --amend --only -- nevertheless commits staged changes

2012-07-10 Thread Junio C Hamano
Marc Strapetz marc.strap...@syntevo.com writes: When using git commit --amend --only --message message --, I'd expect to have just the commit message of my last commit changed, according to the man page: --only Make a commit only from the paths specified on the command line, disregarding

Re: git commit --amend --only -- nevertheless commits staged changes

2012-07-10 Thread Jeff King
On Tue, Jul 10, 2012 at 04:30:52PM -0400, Jeff King wrote: On Tue, Jul 10, 2012 at 01:14:32PM -0700, Junio C Hamano wrote: I do not think the combination with --amend, --only and no paths ever worked. We rejected such a combination before 6a74642c5, which merely made us to accept the