git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eygene Ryabinkin <rea-git@codelabs.ru>
To: Junio C Hamano <junkio@cox.net>
Cc: "Shawn O. Pearce" <spearce@spearce.org>, git@vger.kernel.org
Subject: Re: [PATCH] pager: default to LESS=FRX not LESS=FRSX
Date: Mon, 26 Mar 2007 14:08:57 +0400	[thread overview]
Message-ID: <20070326100857.GW14837@codelabs.ru> (raw)
In-Reply-To: <7v8xdkxukt.fsf@assigned-by-dhcp.cox.net>

Junio,

Mon, Mar 26, 2007 at 01:44:34AM -0700, Junio C Hamano wrote:
> > Junio C Hamano <junkio@cox.net> wrote:
> >> Eygene Ryabinkin <rea-git@codelabs.ru> writes:
> >> 
> >> > Remove unnecessary '-S' option that enabled less to chop long lines.
> >> > It used to provide some confusion at least for the 'git diff':
> >> > "Where are my long lines? Are they missed from the patch?".
> >> 
> >> It is not "unnecessary", but only "what _you_ are not used to".
> >> As this breaks expectentions of people already familiar with
> >> what git does by default, I cannot take this patch.

OK, no problem.

> > Hear hear.  I completely agree with Junio.  I (and a number of
> > other users that I work with) expect this behevaior by default.
> 
> Two tips.
> 
>  (1) Learn to use left/right arrow keys under "less -S" if you
>      have occasional lines that are too long.

I do not like the left/right keys: it is wery hard to get the
right typing speed if we're using the arrow keys. But it is just
my habit since I learned to 10 fingers typing.

>  (2) Do not have too many too long lines to begin with.  If you
>      cannot comfortably read your code with "less -S", your
>      nesting is too deep to be understood with or without line
>      folding.

Yes, yes, "if you need more than 4 levels of identation then your
code is probably in a bad shape". I know it. But the problem was that
I noticed this behaviour when I was patching the Git sources and there
were some removed lines that were long enough not to fit to the screen
with the addition of the '- ' diff tags.
-- 
Eygene

  reply	other threads:[~2007-03-26 10:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-26  7:35 [PATCH] pager: default to LESS=FRX not LESS=FRSX Eygene Ryabinkin
2007-03-26  8:28 ` Junio C Hamano
2007-03-26  8:36   ` Shawn O. Pearce
2007-03-26  8:44     ` Junio C Hamano
2007-03-26 10:08       ` Eygene Ryabinkin [this message]
2007-03-26 18:45         ` Junio C Hamano
2007-03-26 19:03         ` Jeff King
2007-03-27  6:47           ` Eygene Ryabinkin
2007-03-26 19:14       ` Bill Lear
2007-03-26 20:27         ` Junio C Hamano
2007-03-27  6:54         ` Eygene Ryabinkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070326100857.GW14837@codelabs.ru \
    --to=rea-git@codelabs.ru \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    --cc=spearce@spearce.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).