{"thread":{"id":"48981","subject":"Strange bug with \"git log\" - pdftotext?","startedAt":"2018-07-30T12:56:52Z","lastAt":"2018-07-30T15:51:38Z","messageCount":4,"participants":["Jeremy Morton","Jeff King","stefan.naewe@atlas-elektronik.com"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"353872","messageId":"5B5F096A.7030404@game-point.net","threadId":"48981","inReplyTo":null,"subject":"Strange bug with \"git log\" - pdftotext?","fromName":"Jeremy Morton","fromEmail":"admin@game-point.net","sentAt":"2018-07-30T12:49:46Z","receivedAt":"2018-07-30T12:56:52Z","isPatch":false,"sender":{"key":"admin@game-point.net","avatar":null},"body":"I'm trying to search my git log history for a particular term - \n\"unobtrusive\" - so I run this command:\n\ngit log -S unobtrusive --oneline\n\nWhen I do this, this is displayed and I'm in an interactive less \nterminal or something:\n\npdftotext version 4.00\nCopyright 1996-2017 Glyph & Cog, LLC\nUsage: pdftotext [options] <PDF-file> [<text-file>]\n  -f <int>             : first page to convert\n  -l <int>             : last page to convert\n  -layout              : maintain original physical layout\n  -simple              : simple one-column page layout\n  -table               : similar to -layout, but optimized for tables\n  -lineprinter         : use strict fixed-pitch/height layout\n  -raw                 : keep strings in content stream order\n  -fixed <number>      : assume fixed-pitch (or tabular) text\n  -linespacing <number>: fixed line spacing for LinePrinter mode\n  -clip                : separate clipped text\n  -nodiag              : discard diagonal text\n  -enc <string>        : output text encoding name\n  -eol <string>        : output end-of-line convention (unix, dos, or mac)\n  -nopgbrk             : don't insert page breaks between pages\n  -bom                 : insert a Unicode BOM at the start of the text \nfile\n  -opw <string>        : owner password (for encrypted files)\n  -upw <string>        : user password (for encrypted files)\n  -q                   : don't print any messages or errors\n  -cfg <string>        : configuration file to use in place of .xpdfrc\n  -v                   : print copyright and version info\n:\n\nWhen I hit the down arrow, it scrolls down, repeating this output \ninfinitely until I hit 'q'.  What is going on here??\n\n-- \nBest regards,\nJeremy Morton (Jez)\n"},{"id":"353887","messageId":"20180730153731.GA25797@sigill.intra.peff.net","threadId":"48981","inReplyTo":"5B5F096A.7030404@game-point.net","subject":"Re: Strange bug with \"git log\" - pdftotext?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2018-07-30T15:37:31Z","receivedAt":"2018-07-30T15:37:35Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Jul 30, 2018 at 01:49:46PM +0100, Jeremy Morton wrote:\n\n> I'm trying to search my git log history for a particular term -\n> \"unobtrusive\" - so I run this command:\n> \n> git log -S unobtrusive --oneline\n> \n> When I do this, this is displayed and I'm in an interactive less terminal or\n> something:\n> \n> pdftotext version 4.00\n> [...]\n\nThat's definitely weird.\n\nMy guess is that the repository has some .gitattributes set up to diff\npdf files in a particular way, and you have some matching config that\ntries to call pdftotext.\n\nWhat does:\n\n  git config --list | grep ^diff\n\nsay? I'd expect to see an external or textconv option there running\npdftotext.\n\nAnother option is that your pager is somehow set up to call pdftotext,\nbut that seems much more nonsensical to use the tool there (but try \"git\nvar GIT_PAGER\" and \"git config pager.log\" to check).\n\n-Peff\n"},{"id":"353902","messageId":"7fbab4fc-a0a3-0aca-2974-24ac1ed5197e@atlas-elektronik.com","threadId":"48981","inReplyTo":"5B5F096A.7030404@game-point.net","subject":"Re: Strange bug with \"git log\" - pdftotext?","fromName":"","fromEmail":"stefan.naewe@atlas-elektronik.com","sentAt":"2018-07-30T15:41:23Z","receivedAt":"2018-07-30T15:51:10Z","isPatch":false,"sender":{"key":"stefan.naewe@gmail.com","avatar":"https://avatars.githubusercontent.com/u/4468?v=4"},"body":"Am 30.07.2018 um 14:49 schrieb Jeremy Morton:\n> I'm trying to search my git log history for a particular term - \"unobtrusive\" - so I run this command:\n> \n> git log -S unobtrusive --oneline\n> \n> When I do this, this is displayed and I'm in an interactive less terminal or something:\n> \n> pdftotext version 4.00\n> Copyright 1996-2017 Glyph & Cog, LLC\n> Usage: pdftotext [options] <PDF-file> [<text-file>]\n>  -f <int>             : first page to convert\n>  -l <int>             : last page to convert\n>  -layout              : maintain original physical layout\n>  -simple              : simple one-column page layout\n>  -table               : similar to -layout, but optimized for tables\n>  -lineprinter         : use strict fixed-pitch/height layout\n>  -raw                 : keep strings in content stream order\n>  -fixed <number>      : assume fixed-pitch (or tabular) text\n>  -linespacing <number>: fixed line spacing for LinePrinter mode\n>  -clip                : separate clipped text\n>  -nodiag              : discard diagonal text\n>  -enc <string>        : output text encoding name\n>  -eol <string>        : output end-of-line convention (unix, dos, or mac)\n>  -nopgbrk             : don't insert page breaks between pages\n>  -bom                 : insert a Unicode BOM at the start of the text file\n>  -opw <string>        : owner password (for encrypted files)\n>  -upw <string>        : user password (for encrypted files)\n>  -q                   : don't print any messages or errors\n>  -cfg <string>        : configuration file to use in place of .xpdfrc\n>  -v                   : print copyright and version info\n> :\n> \n> When I hit the down arrow, it scrolls down, repeating this output infinitely until I hit 'q'.  What is going on here??\n> \n\nWild guess: You're using \"Git for Windows\" on a version less than \"2.18.0.windows.1\" ?\n\nTry upgrading (at least) to that version. IIRC that's one of the issues it fixes.\n\nHTH\nStefan\n-- \n----------------------------------------------------------------\n/dev/random says: Never underestimate the power of human stupidity.\npython -c \"print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')\" \nGPG Key fingerprint = 2DF5 E01B 09C3 7501 BCA9  9666 829B 49C5 9221 27AF"},{"id":"353903","messageId":"5B5F3405.9070902@game-point.net","threadId":"48981","inReplyTo":"20180730153731.GA25797@sigill.intra.peff.net","subject":"Re: Strange bug with \"git log\" - pdftotext?","fromName":"Jeremy Morton","fromEmail":"admin@game-point.net","sentAt":"2018-07-30T15:51:33Z","receivedAt":"2018-07-30T15:51:38Z","isPatch":false,"sender":{"key":"admin@game-point.net","avatar":null},"body":"I discovered it was an issue with the version of Git for Windows I was \nusing.  Upgraded to the latest version and it works now.\n\n-- \nBest regards,\nJeremy Morton (Jez)\n\nOn 30/07/2018 16:37, Jeff King wrote:\n> On Mon, Jul 30, 2018 at 01:49:46PM +0100, Jeremy Morton wrote:\n>\n>> I'm trying to search my git log history for a particular term -\n>> \"unobtrusive\" - so I run this command:\n>>\n>> git log -S unobtrusive --oneline\n>>\n>> When I do this, this is displayed and I'm in an interactive less terminal or\n>> something:\n>>\n>> pdftotext version 4.00\n>> [...]\n>\n> That's definitely weird.\n>\n> My guess is that the repository has some .gitattributes set up to diff\n> pdf files in a particular way, and you have some matching config that\n> tries to call pdftotext.\n>\n> What does:\n>\n>    git config --list | grep ^diff\n>\n> say? I'd expect to see an external or textconv option there running\n> pdftotext.\n>\n> Another option is that your pager is somehow set up to call pdftotext,\n> but that seems much more nonsensical to use the tool there (but try \"git\n> var GIT_PAGER\" and \"git config pager.log\" to check).\n>\n> -Peff\n>\n"}]}