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

Regression: cannot edit after intent-to-add

From
Simon Richter <simon.richter@hogyros.de>
Date
Nov 3, 2020, 17:16 UTC
Message-ID
<20201103171618.GA28810@psi5.com>
Hi,

I often create intermediate commits using hunk editing, which used to work in older versions even for new files, e.g.

    cat >file <<EOF
    foo
    bar
    EOF
    git add -N file
    git add -p file

git-add -p now shows me both lines as added, but does not allow me to edit. If I want to create an intermediate commit adding just one of the lines, I have to edit the actual file.

This used to work in older versions, as I remember using this technique for a while and recommending it to others.

Before I do a deep-dive into a codebase I haven't looked at in years: can this be re-added easily?

   Simon
Next: Kyle Meyer
Message 1 of 2 in “Regression: cannot edit after intent-to-add”
  1. Simon RichterNov 3, 2020
  2. Kyle MeyerNov 3, 2020

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.