All of lore.kernel.org
 help / color / mirror / Atom feed
* How to set tab size for hunks in “git add -p”?
@ 2013-08-23 17:28 Янчарук Александр
  2013-08-23 18:19 ` Antoine Pelisse
  0 siblings, 1 reply; 3+ messages in thread
From: Янчарук Александр @ 2013-08-23 17:28 UTC (permalink / raw)
  To: git

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to set tab size for hunks in “git add -p”?
  2013-08-23 17:28 How to set tab size for hunks in “git add -p”? Янчарук Александр
@ 2013-08-23 18:19 ` Antoine Pelisse
  2013-08-24  9:53   ` Янчарук Александр
  0 siblings, 1 reply; 3+ messages in thread
From: Antoine Pelisse @ 2013-08-23 18:19 UTC (permalink / raw)
  To: alex; +Cc: git

On Fri, Aug 23, 2013 at 7:28 PM, Янчарук Александр <alex@itvault.info> wrote:
> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to set tab size for hunks in “git add -p”?
  2013-08-23 18:19 ` Antoine Pelisse
@ 2013-08-24  9:53   ` Янчарук Александр
  0 siblings, 0 replies; 3+ messages in thread
From: Янчарук Александр @ 2013-08-24  9:53 UTC (permalink / raw)
  To: Antoine Pelisse; +Cc: git

Thanks a lot!

That solution worked for me:
env TERM=linux setterm -regtabs 4

Best regards,
Alexander Yancharuk
alex@itvault.info <mailto:alex@itvault.info>
On 23.08.2013 22:19, Antoine Pelisse wrote:
> On Fri, Aug 23, 2013 at 7:28 PM, Янчарук Александр <alex@itvault.info> wrote:
>> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-24  9:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-23 17:28 How to set tab size for hunks in “git add -p”? Янчарук Александр
2013-08-23 18:19 ` Antoine Pelisse
2013-08-24  9:53   ` Янчарук Александр

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.