git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Interactive staging not functioning properly?

From
RDRobert Dailey <rcdailey.lists@gmail.com>
Date
Sep 4, 2014, 21:56 UTC
Message-ID
<CAHd499BtOH1LUq7P4Zghfso4Q-L=Ns_G7vNXox557X5dxRV70w@mail.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:
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.
Previous: Robert Dailey
Message 2 of 2 in “Interactive staging not functioning properly?”
  1. Robert DaileySep 4, 2014
  2. Robert DaileySep 4, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.