git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git diff --name-status does not always list changed files

From
Sebastian Schuberth <sschuberth@gmail.com>
Date
Feb 28, 2008, 22:19 UTC
Message-ID
<bdca99240802281419o3fcea2e8u277d8e5e48131b6d@mail.gmail.com>
In-Reply-To
<7vejawhi6a.fsf@gitster.siamese.dyndns.org>
Show 20 quoted lines
>  > Junio C Hamano wrote:
>  >
>  >> Doesn't reproduce for me.
>  >>
>  >>         $ rm -fr /var/tmp/j && mkdir -p /var/tmp/j && cd /var/tmp/j
>  >>         $ git init
>  >>         Initialized empty Git repository in .git/
>  >
>  > Can you reproduce it if you do
>  >
>  > $ git config core.pager "less -F"
>  >
>  > after "git init"? The "-F" seems to be important, but I'm not sure why
>  > using this switch causes no files to be displayed in this case.
>
>  Then isn't it what you are asking "less" to do?
>
>  Try "less -FX".  FYI, by default, we use "LESS=FRSX" exported
>  unless the user knows better than us and uses something of his
>  own.

Thanks, -FX works, though I do not understand why it did not with just -F. From what I understood, -F just makes "less" quit immediately (instead of waiting for the user to press "q") if the lines to display fit completely on screen. In no case it should display nothing if there actually is something to display.

-- 
Sebastian Schuberth
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “git diff --name-status does not always list changed files”
  1. Sebastian SchuberthFeb 28, 2008
  2. Junio C HamanoFeb 28, 2008
  3. Sebastian SchuberthFeb 28, 2008
  4. Junio C HamanoFeb 28, 2008
  5. Sebastian SchuberthFeb 28, 2008
  6. Junio C HamanoFeb 28, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.