Re: How to remove a specific hunk

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: How to remove a specific hunk

From: Florian Weimer <hidden>
Date: 2016-06-15 22:43:45

* Johannes Schindelin:
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                [off-list ref]
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

Re: How to remove a specific hunk

From: Pascal Obry <hidden>
Date: 2016-06-15 22:43:45

Florian Weimer a écrit :
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.
That was not Benoit but me who asked this question. I want indeed the
hunk to be reverted/removed on the working copy. I had many answers to
do this but I still think a "git reset --interactive" with the
possibility to revert some hunks would be easier.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help