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

Re: Proposal: sharing .git/config

From
Thomas Rast <trast@student.ethz.ch>
Date
Feb 19, 2013, 10:39 UTC
Message-ID
<87vc9osi3u.fsf@pctrast.inf.ethz.ch>
In-Reply-To
<CALkWK0m--MbtNzGH9hNPCCLJWhv6rjF9Y=WQ4qnHUFnE61p6kw@mail.gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 11 quoted lines
> Thomas Rast wrote:
>> Ramkumar Ramachandra <artagnon@gmail.com> writes:
>>> There are also other things in .git/config that would be nice to
>>> share, like whether to do a --word-diff (why isn't it a configuration
>>> variable yet?)
>>
>> Because that would break pretty much every script that uses git-diff?
>
> diff.c already makes a differentiation between git_diff_ui_config()
> and git_diff_basic_config(); there are  configuration options that
> should only be applied when the command is called interactively.

It still breaks every other use of diff unless you make the diff output depend on whether the user runs directly at the terminal (possibly using git's own paging).

For example, if you just say something like 'git diff >file' for inclusion in an email, you expect that to be a git-apply compatible diff.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Ramkumar RamachandraNext: Duy Nguyen
Message 4 of 11 in “Proposal: sharing .git/config”
  1. Ramkumar RamachandraFeb 19, 2013
  2. Thomas RastFeb 19, 2013
  3. Ramkumar RamachandraFeb 19, 2013
  4. Thomas RastFeb 19, 2013
  5. Duy NguyenFeb 19, 2013
  6. Jeff KingFeb 19, 2013
  7. Ramkumar RamachandraMar 11, 2013
  8. Jeff KingMar 12, 2013
  9. Ramkumar RamachandraMar 18, 2013
  10. Jeff KingMar 18, 2013
  11. Adam SpiersFeb 19, 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.