]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
config: Introduce diff.algorithm variable
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 16 Jan 2013 07:51:57 +0000 (08:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Jan 2013 17:37:45 +0000 (09:37 -0800)
commit07ab4dec80f1c24660ed4bc371849fb4f11a4ee3
tree3f9fc184e856b805b2d7a52873fd7f6ea6aee313
parent216120ab8387c5c9c13b673eab2ff5e1d2d9cbb7
config: Introduce diff.algorithm variable

Some users or projects prefer different algorithms over others, e.g.
patience over myers or similar. However, specifying appropriate
argument every time diff is to be used is impractical. Moreover,
creating an alias doesn't play nicely with other tools based on diff
(git-show for instance). Hence, a configuration variable which is able
to set specific algorithm is needed. For now, these four values are
accepted: 'myers' (which has the same effect as not setting the config
variable at all), 'minimal', 'patience' and 'histogram'.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-config.txt
contrib/completion/git-completion.bash
diff.c