{"thread":{"id":"26147","subject":"\"git show\" does not use diff.external like \"git diff\" does","startedAt":"2010-12-28T15:10:22Z","lastAt":"2010-12-28T17:54:42Z","messageCount":3,"participants":["Bruce Momjian","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"158639","messageId":"201012281510.oBSFAMm14943@momjian.us","threadId":"26147","inReplyTo":null,"subject":"\"git show\" does not use diff.external like \"git diff\" does","fromName":"Bruce Momjian","fromEmail":"bruce@momjian.us","sentAt":"2010-12-28T15:10:22Z","receivedAt":"2010-12-28T15:10:22Z","isPatch":false,"sender":{"key":"bruce@momjian.us","avatar":"https://gravatar.com/avatar/184f5a2e0ec6618cf501c8d2b6269b817aa54c017ac16e97486908e7496f8af6?d=mp&s=160"},"body":"I have diff.external configured properly, and it is used by \"git diff\",\nbut \"git show\" does not call the script and only returns unified diffs.\n\nIs there a way to make \"git show\" use an external diff script?\n\n-- \n  Bruce Momjian  <bruce@momjian.us>        http://momjian.us\n  EnterpriseDB                             http://enterprisedb.com\n\n  + It's impossible for everything to be true. +\n"},{"id":"158677","messageId":"7v39phyec2.fsf@alter.siamese.dyndns.org","threadId":"26147","inReplyTo":"201012281510.oBSFAMm14943@momjian.us","subject":"Re: \"git show\" does not use diff.external like \"git diff\" does","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2010-12-28T17:52:45Z","receivedAt":"2010-12-28T17:52:45Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Bruce Momjian <bruce@momjian.us> writes:\n\n> I have diff.external configured properly, and it is used by \"git diff\",\n> but \"git show\" does not call the script and only returns unified diffs.\n>\n> Is there a way to make \"git show\" use an external diff script?\n\n\"git show --ext-diff\"?\n\nWe end the Description section of the manual with \"This manual page\ndescribes only the most frequently used options.\" without explicitly\nsaying \"Options from the underlying this and that commands can be given as\nwell\", which is rather suboptimal.\n\nThe only existing hint there is one sentence before, \"The command takes\noptions applicable to the git diff-tree command...\", but the reader needs\nto be both careful and vaguely familiar with the way the git command set\nis structured to take advantage of that hint.\n"},{"id":"158678","messageId":"201012281754.oBSHsgU18495@momjian.us","threadId":"26147","inReplyTo":"7v39phyec2.fsf@alter.siamese.dyndns.org","subject":"Re: \"git show\" does not use diff.external like \"git diff\" does","fromName":"Bruce Momjian","fromEmail":"bruce@momjian.us","sentAt":"2010-12-28T17:54:42Z","receivedAt":"2010-12-28T17:54:42Z","isPatch":false,"sender":{"key":"bruce@momjian.us","avatar":"https://gravatar.com/avatar/184f5a2e0ec6618cf501c8d2b6269b817aa54c017ac16e97486908e7496f8af6?d=mp&s=160"},"body":"Junio C Hamano wrote:\n> Bruce Momjian <bruce@momjian.us> writes:\n> \n> > I have diff.external configured properly, and it is used by \"git diff\",\n> > but \"git show\" does not call the script and only returns unified diffs.\n> >\n> > Is there a way to make \"git show\" use an external diff script?\n> \n> \"git show --ext-diff\"?\n> \n> We end the Description section of the manual with \"This manual page\n> describes only the most frequently used options.\" without explicitly\n> saying \"Options from the underlying this and that commands can be given as\n> well\", which is rather suboptimal.\n> \n> The only existing hint there is one sentence before, \"The command takes\n> options applicable to the git diff-tree command...\", but the reader needs\n> to be both careful and vaguely familiar with the way the git command set\n> is structured to take advantage of that hint.\n\nYes, someone on IRC eventually suggested --ext-diff, and it does work. \nI was hoping for something that caused 'show' to always use --ext-diff,\nlike git diff does.  A git alias was the only suggested workaround.\n\n-- \n  Bruce Momjian  <bruce@momjian.us>        http://momjian.us\n  EnterpriseDB                             http://enterprisedb.com\n\n  + It's impossible for everything to be true. +\n"}]}