# Interactive staging not functioning properly?

2 messages from 2014-09-04 to 2014-09-04. Participants: Robert Dailey.
Thread: https://gitlist.dev/t/37493

## Robert Dailey, 2014-09-04 21:54

Subject: Interactive staging not functioning properly?
Message-ID: <CAHd499CdEORortwMWE5eLiKuiYV=yd=sZ4cny8gYe+HCzK4D5w@mail.gmail.com>
URL: https://gitlist.dev/e/CAHd499CdEORortwMWE5eLiKuiYV%3Dyd%3DsZ4cny8gYe%2BHCzK4D5w%40mail.gmail.com

```
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, 2014-09-04 21:56

Subject: Re: Interactive staging not functioning properly?
Message-ID: <CAHd499BtOH1LUq7P4Zghfso4Q-L=Ns_G7vNXox557X5dxRV70w@mail.gmail.com>
URL: https://gitlist.dev/e/CAHd499BtOH1LUq7P4Zghfso4Q-L%3DNs_G7vNXox557X5dxRV70w%40mail.gmail.com
In-Reply-To: <CAHd499CdEORortwMWE5eLiKuiYV=yd=sZ4cny8gYe+HCzK4D5w@mail.gmail.com>

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

```
