# git commit --interactive patch-mode no longer allows selecting files

4 messages from 2017-03-09 to 2017-03-10. Participants: Jörn Hees, Jeff King, Junio C Hamano.
Thread: https://gitlist.dev/t/45329

## Jörn Hees, 2017-03-09 17:48

Subject: git commit --interactive patch-mode no longer allows selecting files
Message-ID: <8C99B562-9194-4227-B40D-F64BBECEEE38@joernhees.de>
URL: https://gitlist.dev/e/8C99B562-9194-4227-B40D-F64BBECEEE38%40joernhees.de

```
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


```

## Jeff King, 2017-03-09 18:23

Subject: Re: git commit --interactive patch-mode no longer allows selecting files
Message-ID: <20170309182320.n77lvytjh7u2b2a2@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20170309182320.n77lvytjh7u2b2a2%40sigill.intra.peff.net
In-Reply-To: <8C99B562-9194-4227-B40D-F64BBECEEE38@joernhees.de>

```
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

```

## Junio C Hamano, 2017-03-10 19:57

Subject: Re: git commit --interactive patch-mode no longer allows selecting files
Message-ID: <xmqqk27wykfj.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqqk27wykfj.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <20170309182320.n77lvytjh7u2b2a2@sigill.intra.peff.net>

```
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'".



```

## Jeff King, 2017-03-10 19:58

Subject: Re: git commit --interactive patch-mode no longer allows selecting files
Message-ID: <20170310195850.jsgjelmrhcnz7zoz@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20170310195850.jsgjelmrhcnz7zoz%40sigill.intra.peff.net
In-Reply-To: <xmqqk27wykfj.fsf@gitster.mtv.corp.google.com>

```
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

```
