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

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

From
JMJeremy Morton <admin@game-point.net>
Date
Jul 30, 2018, 15:51 UTC
Message-ID
<5B5F3405.9070902@game-point.net>
In-Reply-To
<20180730153731.GA25797@sigill.intra.peff.net>

I discovered it was an issue with the version of Git for Windows I was using. Upgraded to the latest version and it works now.

-- 
Best regards,
Jeremy Morton (Jez)

On 30/07/2018 16:37, Jeff King wrote:
> On Mon, Jul 30, 2018 at 01:49:46PM +0100, Jeremy Morton wrote:
>
>> 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: Jeff KingNext: stefan.naewe@atlas-elektronik.com
Message 3 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.