threads / discuss / 13051

Question about Tig

Subject: Question about Tig

## tl;dr

3 messages between Apr 10, 2008 and Apr 10, 2008.

replies: 2people: 2as markdown or json

Pascal Obry· Apr 10, 2008, 15:47 UTC · lore
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.

-- 
--|------------------------------------------------------
--| 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
Jonas Fonseca· Apr 10, 2008, 17:13 UTC · re: Pascal Obry · lore

Re: Question about Tig

On Thu, Apr 10, 2008 at 5:47 PM, Pascal Obry <pascal@obry.net> wrote:
Show 10 quoted lines
> 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.

-- 
Jonas Fonseca
Pascal Obry· Apr 10, 2008, 21:25 UTC · re: Jonas Fonseca · lore

Re: Question about Tig

Jonas,
> 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.
> For now you can search for "@@" and use that to jump one hunk
> forward.
Yes, I'll do that for the moment. Thanks.
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

← back to recent threads