[BUG] diff algorithm selection issue
- From
- ydirson@free.fr <ydirson@free.fr>
- Date
- May 26, 2020, 09:36 UTC
- Message-ID
- <540830445.1034524732.1590485817611.JavaMail.root@zimbra39-e7>
- In-Reply-To
- <408624876.1034463388.1590484997966.JavaMail.root@zimbra39-e7>
Hi all,
When the config has diff.algorithm=patience set, "git diff --minimal" seems to be ignored, and does not give the same output as "git diff --diff-algorithm=minimal", but really the same as "git diff --diff-algorithm=patience".
See top commit on https://gitlab.com/ydirson/omaha/-/commits/bug/git-diff-minimal where patience diff manages to show a quite braindead diff.
Also, I found it curious that in the manpage the long (--diff-algorithm=minimal) and short (--minimal) forms are described with a copy-paste of the text, and no mention of them being equivalent (or not, for that matter ;).