Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set tab size for pager used in git diff? [duplicate]

I use the pager most

It's pain to see diff output with tabsize=8. How can I specify tabsize==2 ?

@@ -48,6 +49,7 @@
                                                <div class="content_inner">
                                                        <%= yield %>
                                                        <div class="clear"></div>
+              <%= render "emoticons/menu" %>
                                                </div>
                                        </div>
                                        <div class="clear"></div>
like image 396
zuba Avatar asked Feb 28 '13 09:02

zuba


1 Answers

For a less pager, you can update the pager

git config --global core.pager 'less -x2'

You can do the same with mostif this one has an option to change the tab size

like image 140
krampstudio Avatar answered Nov 09 '22 00:11

krampstudio