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

Re: How to remove a specific hunk

From
FWFlorian Weimer <fweimer@bfk.de>
Date
Oct 31, 2007, 11:56 UTC
Message-ID
<82zlxzsdkf.fsf@mid.bfk.de>
In-Reply-To
<Pine.LNX.4.64.0710311104450.4362@racer.site>
* Johannes Schindelin:
Show 7 quoted lines
> You have seen that there are two different file lists, "staged
> changes" and "unstaged changes", right?  AFAIK if you click on the
> file in "staged changes", you can find the staged hunk and then
> remove it from the staged area.
>
> "Revert hunk" would not make any sense, since the hunk disappears
> once you staged/unstaged it.

I think Benoit wants to remove it from the working copy (and, presumably, the index too). "Revert hunk" and "Move hunk to stash" might indeed be useful additions to citool.

-- 
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99
Previous: Johannes SchindelinNext: Pascal Obry
Message 13 of 15 in “How to remove a specific hunk”
  1. Pascal ObryOct 26, 2007
  2. Andreas EricssonOct 26, 2007
  3. Pascal ObryOct 26, 2007
  4. Benoit SIGOUREOct 26, 2007
  5. Johannes SchindelinOct 26, 2007
  6. Olivier RamonatOct 26, 2007
  7. Jeff KingOct 26, 2007
  8. Jeff KingOct 26, 2007
  9. Miles BaderOct 29, 2007
  10. Alex RiesenOct 26, 2007
  11. Benoit SIGOUREOct 31, 2007
  12. Johannes SchindelinOct 31, 2007
  13. Florian WeimerOct 31, 2007
  14. Pascal ObryOct 31, 2007
  15. Peter BaumannOct 31, 2007

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.