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

Re: Question about Tig

From
Jonas Fonseca <jonas.fonseca@gmail.com>
Date
Apr 10, 2008, 17:13 UTC
Message-ID
<2c6b72b30804101013p576847cav28d8238f8bf0d3c2@mail.gmail.com>
In-Reply-To
<47FE3679.1020604@obry.net>
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
Previous: Pascal ObryNext: Pascal Obry
Message 2 of 3 in “Question about Tig”
  1. Pascal ObryApr 10, 2008
  2. Jonas FonsecaApr 10, 2008
  3. Pascal ObryApr 10, 2008

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.