Linux maintainer tooling and workflows
 help / color / mirror / Atom feed
From: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
To: "Clément Le Goffic" <clegoffic@baylibre.com>
Cc: "Kernel.org Tools" <tools@kernel.org>
Subject: Re: [PATCH b4 3/3] lore: stop a less pager quitting on output that fits one screen
Date: Tue, 6 Oct 2026 03:15:32 -0400	[thread overview]
Message-ID: <20261006-watchful-subtle-snake-bebec6@lemur> (raw)
In-Reply-To: <01c5b15f-7f4e-4620-be36-bddaa37255d6@baylibre.com>

On Mon, Oct 05, 2026 at 02:37:11PM +0200, Clément Le Goffic wrote:
> > Would this cause problems for people who set their less env to different
> > settings? I'm not sure I'm comfortable blindly appending +F to all
> > possible less invocations.
> 
> We were already removing F from environment variable before this patch and
> to me it wouldn't interfere with people settings:
> 
> From `less --help`:
>   -F  ........  --quit-if-one-screen
>                   Quit if entire file fits on first screen.
> From `man less`:
> The environment variable is parsed before the command line, so command line
> options override the LESS environment variable.  If an option appears in the
> LESS variable, it can be reset to its default value on the command line by
> beginning the command line option with "-+".
> 
> This let me think that we might not need the env path at all in fact...
> I'll rework the whole patch.

I applied the new version, but then backed it out because it broke things for
me. :)

Fedora uses lesspipe.sh, and +F was putting it into "follow" mode that
resulted in a screen full of "~" marks and "Read error" at the bottom.

So, my initial reluctance has been confirmed -- there are too many possible
setups out there for us to try to second-guess what we should be trying to do.
It's best not to try to alter flags on the fly and let the users set up their
GIT_PAGER appropriately instead.

-K

  reply	other threads:[~2026-10-06  7:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-25 12:50 [PATCH b4 0/3] lore: three fixes between a posted serie and the reader Clément Le Goffic
2026-09-25 12:50 ` [PATCH b4 1/3] lore: parse per-file modes in get_indexes Clément Le Goffic
2026-09-25 12:50 ` [PATCH b4 2/3] lore: fake-am series that touch submodule gitlinks Clément Le Goffic
2026-09-25 12:50 ` [PATCH b4 3/3] lore: stop a less pager quitting on output that fits one screen Clément Le Goffic
2026-10-05 10:09   ` Konstantin Ryabitsev
2026-10-05 12:37     ` Clément Le Goffic
2026-10-06  7:15       ` Konstantin Ryabitsev [this message]
2026-10-06  8:27         ` Clément Le Goffic
2026-10-05 10:09 ` [PATCH b4 0/3] lore: three fixes between a posted serie and the reader Konstantin Ryabitsev
2026-10-05 10:11 ` (subset) " Konstantin Ryabitsev

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=20261006-watchful-subtle-snake-bebec6@lemur \
    --to=konstantin@linuxfoundation.org \
    --cc=clegoffic@baylibre.com \
    --cc=tools@kernel.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