on-internet
← Community

Setting tab size for git show

Stack Overflow ·

In order to set a tab size of 4, my .git/config has: [pager] diff = less -x1,5 show = less -x4 This works fine when displaying a file like with: $ git show <ref>:<file> because in that case, it's a plain file and not a delta. However, when showing a change set like with: $ git show <ref> the tabs are not displayed correctly since it's a delta and the setting would have to be show = less -x1,5. Is there a way to configure git such that show works in both case?

Comments

Sign in or sign up to comment and upvote.

No comments yet.