http://bugzilla.novell.com/show_bug.cgi?id=554513 Summary: Pager defaults make things harder for git Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: lkundrak@v3.sk QAContact: qa@suse.de Found By: --- Git can be configured to produce output colored with ansi escape sequences by setting a color.ui property. In order to display these, a pager that passes them through instead of interpreting them is needed, such as less with -R parameter. less is Git's default pager and it can get parameters either from command line, or from LESS environment variable. Unless LESS environment variable is set, git sets it to -R option (among others) to have a sensible default for displaying colored output. Since openSUSE sets LESS variable in /etc/profile, doing a "git config --global color.ui auto" doesn't work out of box - the escape sequences are displayed escaped. Note this is confusing especially for newcomers to git that follow textbook and is a deviation from behaviour of most other Linux distributions. What can be done about this: 1.) (My personal preference) Do not set LESS variable in profile(5). There's pretty not much point in overriding a default with a value that causes some tools work worse. 2.) Solve this in git by adding a core.pager="less -R" to stock configuration. 3.) Do nothing and assume user that is capable of setting color.ui is also happy to set core.pager himself. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.