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

随声附和 提交于 2019-12-05 21:21:59

问题


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>

回答1:


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



来源:https://stackoverflow.com/questions/15132325/how-to-set-tab-size-for-pager-used-in-git-diff

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!