[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] indentation has been changed to use only tabs
From: |
Liu Hao |
Subject: |
Re: [Nano-devel] indentation has been changed to use only tabs |
Date: |
Sat, 30 Dec 2017 20:18:41 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
On 2017/12/30 18:53, Benno Schulenberg wrote:
>
> Op 29-12-17 om 21:53 schreef Brand Huntsman:
>> On Fri, 29 Dec 2017 21:44:04 +0100
>> Benno Schulenberg <address@hidden> wrote:
>>
>>> There is one disadvantage to using tabs of four spaces, though:
>>> git diff still thinks that tabs are 8 spaces wide, which pushes
>>> the ends of many lines off the screen. How can I tell git to
>>> display tabs as four spaces?
>>
>> git config --local core.pager 'less -x1,5'
>
> Thanks!
>
> This worked too:
>
> git config --local core.pager "less -x4"
No they aren't equivalent. The diff format reserves the first colon for
the status indicator ('+', '-' and ' ') so `-x1,5` aligns the first tab
on column 5, while `-x4` aligns it on column 4, resulting in only 3
visual spaces.
>
> I've added the suggestion to the README.GIT file.
>
--
Best regards,
LH_Mouse