[Bug 554513] New: Pager defaults make things harder for git
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.
http://bugzilla.novell.com/show_bug.cgi?id=554513 User prusnak@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=554513#c1 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |prusnak@novell.com AssignedTo|bnc-team-screening@forge.pr |puzel@novell.com |ovo.novell.com | --- Comment #1 from Pavol Rusnak <prusnak@novell.com> 2009-11-11 13:09:17 CET --- Btw. LESS variable is set in /etc/profile (package aaa_base) -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=554513 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED Severity|Normal |Minor -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=554513 User puzel@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=554513#c2 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |ro@novell.com --- Comment #2 from Petr Uzel <puzel@novell.com> 2009-11-11 08:59:48 MST --- another option: 4.) add '-R' to LESS in /etc/profile (that's my personal preference :) ) Rudi, what do you think as an aaa_base maintainer? Thanks -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=554513 http://bugzilla.novell.com/show_bug.cgi?id=554513#c3 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|ro@novell.com | Resolution| |FIXED --- Comment #3 from Petr Uzel <puzel@novell.com> 2009-11-24 17:14:14 UTC ---
4.) add '-R' to LESS in /etc/profile (that's my personal preference :) )
As nobody seems to have objections, I've submitted this change to Factory. -- 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.
participants (1)
-
bugzilla_noreply@novell.com