doc: add git-mr-merge description
authorFrantisek Hrbata <frantisek@hrbata.com>
Fri, 18 Dec 2020 16:42:46 +0000 (17:42 +0100)
committerFrantisek Hrbata <frantisek@hrbata.com>
Fri, 18 Dec 2020 16:44:17 +0000 (17:44 +0100)
Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
Documentation/git-mr-merge.txt [new file with mode: 0644]
Documentation/git-mr.txt

diff --git a/Documentation/git-mr-merge.txt b/Documentation/git-mr-merge.txt
new file mode 100644 (file)
index 0000000..058b1f6
--- /dev/null
@@ -0,0 +1,47 @@
+GIT-MR-MERGE(1)
+===============
+:doctype: manpage
+
+
+NAME
+----
+git-mr-merge - Merge MR to current branch
+
+
+SYNOPSIS
+--------
+*git-mr-merge* ['OPTIONS'] 'MR'
+
+
+DESCRIPTION
+-----------
+Merge 'MR' to the current branch if 'MR' base matches common ancestor found
+by 'git-merge-base'. This should prevent incorporation of unwanted changes
+in cases where the 'MR' is e.g. based atop of another 'MR', which is not
+yet merged. This check is skipped when the *-f* option is used.
+
+The merge commit message by default contains subject and description
+as provided during link:git-mr-create.html[git-mr-create(1)]. It can be
+modified if the *-e* option is used.
+
+
+OPTIONS
+-------
+*-f, --force*::
+    Proceed with the merge even if the MR base does not match git merge base.
+
+*--ff*::
+    Allow fast-forward. By default merge commit is created even for
+    fast-forward merges.
+
+*-e, --edit*::
+    Invoke an editor before committing successful mechanical merge.
+
+EXAMPLES
+--------
+`$ git mr-merge --edit MR`::
+  Merge 'MR' specified by revision to current branch and edit commit message.
+
+SEE ALSO
+--------
+link:git-mr.html[git-mr(1)]
index 1615cc20a5f7d2e5e359ef4f3b5171cc529731f3..12fa6e70ac08f25432ae667d4fe034f09a4a9f99 100644 (file)
@@ -81,3 +81,4 @@ link:git-mr-sendmail.html[git-mr-sendmail(1)]
 link:git-mr-update.html[git-mr-update(1)]
 link:git-mr-mbox.html[git-mr-mbox(1)]
 link:git-mr-reply.html[git-mr-reply(1)]
+link:git-mr-merge.html[git-mr-merge(1)]