From: Junio C Hamano Date: Sun, 17 Feb 2013 23:25:51 +0000 (-0800) Subject: Merge branch 'mp/diff-algo-config' X-Git-Url: http://git.tremily.us/?p=git.git;a=commitdiff_plain;h=abea4dc76a675d4ac0f27a2367256dc31981d1ca Merge branch 'mp/diff-algo-config' Add diff.algorithm configuration so that the user does not type "diff --histogram". * mp/diff-algo-config: diff: Introduce --diff-algorithm command line option config: Introduce diff.algorithm variable git-completion.bash: Autocomplete --minimal and --histogram for git-diff --- abea4dc76a675d4ac0f27a2367256dc31981d1ca diff --cc Documentation/diff-config.txt index 7c70c2a2f,b8a8724f6..ac7705025 --- a/Documentation/diff-config.txt +++ b/Documentation/diff-config.txt @@@ -149,10 -149,26 +149,27 @@@ diff..cachetextconv: conversion outputs. See linkgit:gitattributes[5] for details. diff.tool:: - The diff tool to be used by linkgit:git-difftool[1]. This - option overrides `merge.tool`, and has the same valid built-in - values as `merge.tool` minus "tortoisemerge" and plus - "kompare". Any other value is treated as a custom diff tool, - and there must be a corresponding `difftool..cmd` - option. + Controls which diff tool is used by linkgit:git-difftool[1]. + This variable overrides the value configured in `merge.tool`. + The list below shows the valid built-in values. + Any other value is treated as a custom diff tool and requires + that a corresponding difftool..cmd variable is defined. + +include::mergetools-diff.txt[] + + diff.algorithm:: + Choose a diff algorithm. The variants are as follows: + + + -- + `default`, `myers`;; + The basic greedy diff algorithm. Currently, this is the default. + `minimal`;; + Spend extra time to make sure the smallest possible diff is + produced. + `patience`;; + Use "patience diff" algorithm when generating patches. + `histogram`;; + This algorithm extends the patience algorithm to "support + low-occurrence common elements". + -- + +