English ▾
Localized versions of diff-algorithm-option manual
Topics ▾
Email
Latest version
▾
diff-algorithm-option last updated in 2.53.0
Changes in the diff-algorithm-option manual
Setup and Config
Getting and Creating Projects
Basic Snapshotting
Branching and Merging
Sharing and Updating Projects
Inspection and Comparison
Patching
Debugging
External Systems
Server Admin
Guides
- gitattributes
- Command-line interface conventions
- Everyday Git
- Frequently Asked Questions (FAQ)
- Glossary
- Hooks
- gitignore
- gitmodules
- Revisions
- Submodules
- Tutorial
- Workflows
- All guides...
Administration
Plumbing Commands
--diff-algorithm=(patience|minimal|histogram|myers)-
Choose a diff algorithm. The variants are as follows:
defaultmyers-
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".
For instance, if you configured the
diff.algorithmvariable to a non-default value and want to use the default one, then you have to use--diff-algorithm=defaultoption.