Question about Tig
I want to stage only some hunks and not the whole file.
The way to do this is:
- to open the status view S
- select a file
- move the cursor up/down using j/k keys
- when inside the right hunk, press 'u'
Fine. But a bit tedious. Is there a way to navigate one hunk down/up? It would be very handy I think.
Thanks,
Pascal.
Signature · 8 lines
--|------------------------------------------------------ --| 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
Quoted 10 lines · Pascal Obry
I want to stage only some hunks and not the whole file.
The way to do this is:
- to open the status view S
- select a file
- move the cursor up/down using j/k keys
- when inside the right hunk, press 'u'Fine. But a bit tedious. Is there a way to navigate one hunk
Currently there is no way to do this using a keybinding. I will put it on the list of stuff to work on. This, together with the ability to keep the position across staging 'u'pdates, will be a much needed improvement.
For now you can search for "@@" and use that to jump one hunk forward.
Signature · 1 line
Jonas Fonseca
Jonas,
Quoted 4 lines
Currently there is no way to do this using a keybinding. I will put it on the list of stuff to work on. This, together with the ability to keep the position across staging 'u'pdates, will be a much needed improvement.
Agreed.
Quoted 2 lines
For now you can search for "@@" and use that to jump one hunk forward.
Yes, I'll do that for the moment. Thanks.
Pascal.
Signature · 8 lines
--|------------------------------------------------------ --| 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