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

Re: Strange bug with "git log" - pdftotext?

From
Jeff King <peff@peff.net>
Date
Jul 30, 2018, 15:37 UTC
Message-ID
<20180730153731.GA25797@sigill.intra.peff.net>
In-Reply-To
<5B5F096A.7030404@game-point.net>
On Mon, Jul 30, 2018 at 01:49:46PM +0100, Jeremy Morton wrote:
Show 10 quoted lines
> I'm trying to search my git log history for a particular term -
> "unobtrusive" - so I run this command:
> 
> git log -S unobtrusive --oneline
> 
> When I do this, this is displayed and I'm in an interactive less terminal or
> something:
> 
> pdftotext version 4.00
> [...]
That's definitely weird.

My guess is that the repository has some .gitattributes set up to diff pdf files in a particular way, and you have some matching config that tries to call pdftotext.

What does:
  git config --list | grep ^diff

say? I'd expect to see an external or textconv option there running pdftotext.

Another option is that your pager is somehow set up to call pdftotext, but that seems much more nonsensical to use the tool there (but try "git var GIT_PAGER" and "git config pager.log" to check).

-Peff
Previous: Jeremy MortonNext: Jeremy Morton
Message 2 of 4 in “Strange bug with "git log" - pdftotext?”
  1. Jeremy MortonJul 30, 2018
  2. Jeff KingJul 30, 2018
  3. Jeremy MortonJul 30, 2018
  4. stefan.naewe@atlas-elektronik.comJul 30, 2018

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.