Mercurial > hg
comparison tests/test-help.t @ 31822:fde4822b0102
diff: add --binary option for git mode diffs
This patch adds --binary option to `hg diff` and `hg export` to allow more
control about when binary diffs are displayed in Git mode as well as some
tests to verify it behaves correctly (issue5510).
author | Alexander Fomin <afomin@fb.com> |
---|---|
date | Wed, 05 Apr 2017 15:31:08 -0700 |
parents | 07edd8c2f59a |
children | d7b698ae153b |
comparison
equal
deleted
inserted
replaced
31821:66a9faadbc83 | 31822:fde4822b0102 |
---|---|
543 | 543 |
544 -r --rev REV [+] revision | 544 -r --rev REV [+] revision |
545 -c --change REV change made by revision | 545 -c --change REV change made by revision |
546 -a --text treat all files as text | 546 -a --text treat all files as text |
547 -g --git use git extended diff format | 547 -g --git use git extended diff format |
548 --binary generate binary diffs in git mode (default) | |
548 --nodates omit dates from diff headers | 549 --nodates omit dates from diff headers |
549 --noprefix omit a/ and b/ prefixes from filenames | 550 --noprefix omit a/ and b/ prefixes from filenames |
550 -p --show-function show which function each change is in | 551 -p --show-function show which function each change is in |
551 --reverse produce a diff that undoes the changes | 552 --reverse produce a diff that undoes the changes |
552 -w --ignore-all-space ignore white space when comparing lines | 553 -w --ignore-all-space ignore white space when comparing lines |