# [PATCH 1/2] Document 'git (rev-list|log) --merges'

2 messages from 2009-07-13 to 2009-07-13. Participants: SZEDER Gábor.
Thread: https://gitlist.dev/t/20099

## SZEDER Gábor, 2009-07-13 15:11

Subject: [PATCH 1/2] Document 'git (rev-list|log) --merges'
Message-ID: <0f4a962e946f68ec0d7a4c2e568fb3e5ae2a10bc.1247497864.git.szeder@ira.uka.de>
URL: https://gitlist.dev/e/0f4a962e946f68ec0d7a4c2e568fb3e5ae2a10bc.1247497864.git.szeder%40ira.uka.de

```
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---
 Documentation/git-rev-list.txt     |    1 +
 Documentation/rev-list-options.txt |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/Documentation/git-rev-list.txt b/Documentation/git-rev-list.txt
index 1c9cc28..a765cfa 100644
--- a/Documentation/git-rev-list.txt
+++ b/Documentation/git-rev-list.txt
@@ -14,6 +14,7 @@ SYNOPSIS
 	     [ \--max-age=timestamp ]
 	     [ \--min-age=timestamp ]
 	     [ \--sparse ]
+	     [ \--merges ]
 	     [ \--no-merges ]
 	     [ \--first-parent ]
 	     [ \--remove-empty ]
diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt
index 11eec94..bf66116 100644
--- a/Documentation/rev-list-options.txt
+++ b/Documentation/rev-list-options.txt
@@ -201,6 +201,10 @@ endif::git-rev-list[]
 
 	Stop when a given path disappears from the tree.
 
+--merges::
+
+	Print only merge commits.
+
 --no-merges::
 
 	Do not print commits with more than one parent.
-- 
1.6.4.rc0.78.g75597

```

## SZEDER Gábor, 2009-07-13 15:11

Subject: [PATCH 2/2] bash: add '--merges' to common 'git log' options
Message-ID: <48eaed566b8db43b6552893da52d76649d6c7f77.1247497864.git.szeder@ira.uka.de>
URL: https://gitlist.dev/e/48eaed566b8db43b6552893da52d76649d6c7f77.1247497864.git.szeder%40ira.uka.de
In-Reply-To: <0f4a962e946f68ec0d7a4c2e568fb3e5ae2a10bc.1247497864.git.szeder@ira.uka.de>

```
... so it's available for git log, shortlog and gitk.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---
 contrib/completion/git-completion.bash |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 90edc8c..bc2d8b4 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1114,7 +1114,7 @@ _git_ls_tree ()
 __git_log_common_options="
 	--not --all
 	--branches --tags --remotes
-	--first-parent --no-merges
+	--first-parent --merges --no-merges
 	--max-count=
 	--max-age= --since= --after=
 	--min-age= --until= --before=
-- 
1.6.4.rc0.78.g75597

```
