git log -{n}
, when -n
is sufficiently small, doesn't open in less
it simply prints it to the screen. That's desirable. git log -1
should not take up the full screen.
Unfortunately, in MINGW's bash shell, after I've run a non-git command, git log
behaves as if I had ran it into less
and pushed q
. (in otherwords the data is printed to the bottom of the screen and I wind up with a pile of whitespace on top).
Imaginary demo (Please forgive its length):
>> clear
>> git log -1
commit 123123...
Author: CPfohl
Date: {today}
{Message}
>> git log -1
commit 123123...
Author: CPfohl
Date: {today}
{Message}
This works no matter what git command I execute before git log
, as long as git log -{n}
is after a git command.
Is this a bug, or is there a way to get this to behave normally?