git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git commit --interactive patch-mode no longer allows selecting files
@ 2017-03-09 17:48 Jörn Hees
  2017-03-09 18:23 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Jörn Hees @ 2017-03-09 17:48 UTC (permalink / raw)
  To: git

Hi,

i'm not entirely sure if this is a bug or intended (couldn't find it in the changelogs though)...

Before 2.12.0 a `git commit --int` / `git add --int` followed by [p] for patch-mode, would allow a numeric selection of the files to patch hunks for (this behavior is well documented all over the internet).

Since 2.12.0 the numeric selection is skipped and automatically drops me directly into hunk mode (Mac OS X homebrew).

I would see this as a feature if only one file is changed. As soon as multiple files are changed, i often have the use-case that i'm in some bigger change, but want to quickly fix something in other files. In those cases, the new behavior forces me to `d` out of potentially many files, just to quickly commit some small change :-/

I already tried in several repos and without ~/.gitconfig .
Are there any config options i'm missing?

Best,
Jörn


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git commit --interactive patch-mode no longer allows selecting files
  2017-03-09 17:48 git commit --interactive patch-mode no longer allows selecting files Jörn Hees
@ 2017-03-09 18:23 ` Jeff King
  2017-03-10 19:57   ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2017-03-09 18:23 UTC (permalink / raw)
  To: Jörn Hees; +Cc: git

On Thu, Mar 09, 2017 at 06:48:58PM +0100, Jörn Hees wrote:

> i'm not entirely sure if this is a bug or intended (couldn't find it in the changelogs though)...
> 
> Before 2.12.0 a `git commit --int` / `git add --int` followed by [p]
> for patch-mode, would allow a numeric selection of the files to patch
> hunks for (this behavior is well documented all over the internet).
> 
> Since 2.12.0 the numeric selection is skipped and automatically drops
> me directly into hunk mode (Mac OS X homebrew).

It's a bug. The fix is in c852bd54bd87fdcdc825f5d45c26aa745be13ba6, but
has not yet been merged to any integration branches. I hope it will make
it into v2.12.1.

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git commit --interactive patch-mode no longer allows selecting files
  2017-03-09 18:23 ` Jeff King
@ 2017-03-10 19:57   ` Junio C Hamano
  2017-03-10 19:58     ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2017-03-10 19:57 UTC (permalink / raw)
  To: Jeff King; +Cc: Jörn Hees, git

Jeff King <peff@peff.net> writes:

> It's a bug. The fix is in c852bd54bd87fdcdc825f5d45c26aa745be13ba6, but
> has not yet been merged to any integration branches. I hope it will make
> it into v2.12.1.

Wow, you got me worried.  

It has been in 'pu' (and my private edition 'jch', which is
somewhere between 'next' and 'pu') and marked as "Will merge to
'next'".



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git commit --interactive patch-mode no longer allows selecting files
  2017-03-10 19:57   ` Junio C Hamano
@ 2017-03-10 19:58     ` Jeff King
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff King @ 2017-03-10 19:58 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Jörn Hees, git

On Fri, Mar 10, 2017 at 11:57:04AM -0800, Junio C Hamano wrote:

> Jeff King <peff@peff.net> writes:
> 
> > It's a bug. The fix is in c852bd54bd87fdcdc825f5d45c26aa745be13ba6, but
> > has not yet been merged to any integration branches. I hope it will make
> > it into v2.12.1.
> 
> Wow, you got me worried.  
> 
> It has been in 'pu' (and my private edition 'jch', which is
> somewhere between 'next' and 'pu') and marked as "Will merge to
> 'next'".

Yeah, sorry, I just meant "not in master or next". I did check that you
had picked it up.

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-10 19:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-09 17:48 git commit --interactive patch-mode no longer allows selecting files Jörn Hees
2017-03-09 18:23 ` Jeff King
2017-03-10 19:57   ` Junio C Hamano
2017-03-10 19:58     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).