How to set tab size for hunks in “git add -p”?
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!
Signature · 3 lines
Best regards, Alexander Yancharuk [email protected] <mailto:[email protected]>
Quoted 2 lines · Янчарук Александр
But those settings seems does not affect on |git add -p|. How to set tab size for hunks in *git add -p* command?
That's because "git add -p" doesn't go through less/pager.
You can certainly change the tabs size for your terminal with "tabs -4" though.
Thanks a lot!
That solution worked for me:
env TERM=linux setterm -regtabs 4
Best regards,
Alexander Yancharuk
[email protected] <mailto:[email protected]>
Quoted 5 lines · Antoine Pelisse
Quoted 2 lines · Янчарук Александр
But those settings seems does not affect on |git add -p|. How to set tab size for hunks in *git add -p* command?
That's because "git add -p" doesn't go through less/pager.
You can certainly change the tabs size for your terminal with "tabs -4" though.