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

How to set tab size for hunks in “git add -p”?

From
ЯАЯнчарук Александр <alex@itvault.info>
Date
Aug 23, 2013, 17:28 UTC
Message-ID
<52179BAB.3040505@itvault.info>
Hi!

I used the solution from here <http://stackoverflow.com/questions/15132325/how-to-set-tab-size-for-pager-used-in-git-diff> to change tab size in |git diff||| output. That works fine with git diff.

I have these settings in my *.gitconfig*:
    |[core]
    whitespace = tabsize=4,indent-with-non-tab
    pager = less -FSRX -x4
    |

But those settings seems does not affect on |git add -p|. How to set tab size for hunks in *git add -p* command?

Thanks in advance!
-- 
Best regards,
Alexander Yancharuk
alex@itvault.info <mailto:alex@itvault.info>
Next: Antoine Pelisse
Message 1 of 3 in “How to set tab size for hunks in “git add -p”?”
  1. Янчарук АлександрAug 23, 2013
  2. Antoine PelisseAug 23, 2013
  3. Янчарук АлександрAug 24, 2013

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.