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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Sebastian Schuberth" <sschuberth@xxxxxxxxx> writes:

> 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.

My reading and understanding of less manual page, especially the
part that talks about -X suggests that everything is working as
it is meant to.

"git diff --name-status" displays something, less shows it, and
it quits immediately (because you asked it to with -F).  As part
of its quitting, it clears the screen because you did not ask
less not to do that by giving it an -X.

I am tempted to call it a bug in less, but I am a very nice
person and I would not actually do so ;-).  But it certainly
feels like a misfeature between less and terminfo to me.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux