Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Proposal: sharing .git/config

From: Thomas Rast <hidden>
Date: 2016-06-15 22:56:12

Ramkumar Ramachandra [off-list ref] writes:
Thomas Rast wrote:
quoted
Ramkumar Ramachandra [off-list ref] writes:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help