threads / discuss / 37493

Interactive staging not functioning properly?

Subject: Interactive staging not functioning properly?

## tl;dr

2 messages between Sep 4, 2014 and Sep 4, 2014.

replies: 1people: 1as markdown or json

Robert Dailey· Sep 4, 2014, 21:54 UTC · lore
I run the following:
$ git add -p

I skip the first hunk by typing "n". At the next hunk, I try "k" and "K". In both cases, it shows me the same hunk I'm on again and says "No previous hunk".

Is this intended behavior? I expect to be taken back to the previous hunk that I did not stage.

Running Git 2.1.0 on msysgit Windows.
Robert Dailey· Sep 4, 2014, 21:56 UTC · re: Robert Dailey · lore

Re: Interactive staging not functioning properly?

Sorry, I just realized that when the hunks are across file boundaries, it won't go back to it. I think this is a bit misleading, it would be great to see it go back to the ACTUAL previous hunk, regardless of which file it came from.

On Thu, Sep 4, 2014 at 4:54 PM, Robert Dailey <rcdailey.lists@gmail.com> wrote:
Show 12 quoted lines
> I run the following:
>
> $ git add -p
>
> I skip the first hunk by typing "n". At the next hunk, I try "k" and
> "K". In both cases, it shows me the same hunk I'm on again and says
> "No previous hunk".
>
> Is this intended behavior? I expect to be taken back to the previous
> hunk that I did not stage.
>
> Running Git 2.1.0 on msysgit Windows.

← back to recent threads