summaryrefslogtreecommitdiffstats
path: root/git-interpret-trailers.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-01-29 16:05:21 -0800
committerJunio C Hamano <gitster@pobox.com>2016-01-29 16:05:21 -0800
commit7d09864344d875230c85cf7402730fef04f238fb (patch)
tree57322795a506186f702092b33ac46e09d44a6b73 /git-interpret-trailers.txt
parent289d7e8e148e955d97776feff1a43a249eda86a6 (diff)
downloadgit-htmldocs-7d09864344d875230c85cf7402730fef04f238fb.tar.gz
Autogenerated HTML docs for v2.7.0-229-g701fa7
Diffstat (limited to 'git-interpret-trailers.txt')
-rw-r--r--git-interpret-trailers.txt24
1 files changed, 23 insertions, 1 deletions
diff --git a/git-interpret-trailers.txt b/git-interpret-trailers.txt
index 0ecd497c4..a77b901f1 100644
--- a/git-interpret-trailers.txt
+++ b/git-interpret-trailers.txt
@@ -8,7 +8,7 @@ git-interpret-trailers - help add structured information into commit messages
SYNOPSIS
--------
[verse]
-'git interpret-trailers' [--trim-empty] [(--trailer <token>[(=|:)<value>])...] [<file>...]
+'git interpret-trailers' [--in-place] [--trim-empty] [(--trailer <token>[(=|:)<value>])...] [<file>...]
DESCRIPTION
-----------
@@ -64,6 +64,9 @@ folding rules, the encoding rules and probably many other rules.
OPTIONS
-------
+--in-place::
+ Edit the files in place.
+
--trim-empty::
If the <value> part of any trailer contains only whitespace,
the whole trailer will be removed from the resulting message.
@@ -216,6 +219,25 @@ Signed-off-by: Alice <alice@example.com>
Signed-off-by: Bob <bob@example.com>
------------
+* Use the '--in-place' option to edit a message file in place:
++
+------------
+$ cat msg.txt
+subject
+
+message
+
+Signed-off-by: Bob <bob@example.com>
+$ git interpret-trailers --trailer 'Acked-by: Alice <alice@example.com>' --in-place msg.txt
+$ cat msg.txt
+subject
+
+message
+
+Signed-off-by: Bob <bob@example.com>
+Acked-by: Alice <alice@example.com>
+------------
+
* Extract the last commit as a patch, and add a 'Cc' and a
'Reviewed-by' trailer to it:
+