diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-02-21 11:16:12 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-02-21 23:16:59 (GMT) |
commit | af2f36809182c24ee92d3b13ed3cc5a1fb6e10df (patch) | |
tree | b38fc67f7754fe400b2e633e00ad8a3d8d30e710 /Documentation | |
parent | 7d7942b79678904c7f07a2d5cbb76dd991926373 (diff) | |
download | git-af2f36809182c24ee92d3b13ed3cc5a1fb6e10df.zip git-af2f36809182c24ee92d3b13ed3cc5a1fb6e10df.tar.gz git-af2f36809182c24ee92d3b13ed3cc5a1fb6e10df.tar.bz2 |
diff-parseopt: convert --output-*
This also validates that the user specifies a single character in
--output-indicator-*, not a string.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/diff-options.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt index 7b81b85..56b731e 100644 --- a/Documentation/diff-options.txt +++ b/Documentation/diff-options.txt @@ -41,6 +41,16 @@ ifndef::git-format-patch[] Implies `-p`. endif::git-format-patch[] +--output=<file>:: + Output to a specific file instead of stdout. + +--output-indicator-new=<char>:: +--output-indicator-old=<char>:: +--output-indicator-context=<char>:: + Specify the character used to indicate new, old or context + lines in the generated patch. Normally they are '+', '-' and + ' ' respectively. + ifndef::git-format-patch[] --raw:: ifndef::git-log[] |