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

Re: supports diff.context config for git-diff-tree

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 16, 2013, 00:00 UTC
Message-ID
<7vhaldf7qb.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAHtLG6TPs=Z2i8s3_dd_igztuvuqE5L93cTtBM4q1zDCzpU55w@mail.gmail.com>
乙酸鋰 <ch3cooli@gmail.com> writes:
> In git 1.8.1, git-diff supports diff.context config.
> However, git-diff-tree does not support this.
> Could you also add this to git-diff-tree?
That's more or less deliberate, isn't it?

Cosmetic details of the output from plumbing commands should not be affected by random configuration variables the user happens to have and break the assumption your script that reads their output makes.

If your custom Porcelain that is built using the plumbing commands wants to honor such UI level configuration variables, "git config" is there for that exact purpose.

Previous: 乙酸鋰
Message 2 of 2 in “supports diff.context config for git-diff-tree”
  1. 乙酸鋰Feb 15, 2013
  2. Junio C HamanoFeb 16, 2013

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.