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

Re: git log missing last line of output

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Jun 1, 2009, 20:56 UTC
Message-ID
<DD9E6A72-B168-424E-8406-483B1F315088@silverinsanity.com>
In-Reply-To
<h01enr$71i$1@ger.gmane.org>
On Jun 1, 2009, at 4:50 PM, Neal Kreitzinger wrote:
Show 15 quoted lines
> Git has the option '--no-pager' to overcome incompatibility issues.   
> Since I
> do not know if the pager is having problems with any commands  
> besides 'git
> log', I will focus on 'git log' only.  The command 'git --no-pager  
> log' can
> be executed in lieu of 'git log' to display the log correctly.  A  
> git alias
> can be setup to create a shorter command to accomplish this.  I've  
> created
> the command 'git logr' as a system alias on the git testbox so you  
> can use
> that command instead of 'git log'.  A system alias applies to all  
> logins and
> repos on the system.

You could also use the core.pager and/or pager.<cmd> configuration variables. Setting either to "false" or "no" (or "off" in git >= 1.6.3-rc1) will stop git from using the pager without needing an alias. See git-config(1) (or Documentation/config.txt) for details.

~~ Brian
Previous: Neal Kreitzinger
Message 7 of 7 in “git log missing last line of output”
  1. Neal KreitzingerMay 26, 2009
  2. Michael J GruberMay 27, 2009
  3. Neal KreitzingerMay 27, 2009
  4. Johannes SixtMay 27, 2009
  5. Neal KreitzingerMay 27, 2009
  6. Neal KreitzingerJun 1, 2009
  7. Brian GernhardtJun 1, 2009

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.