We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83a09ea commit fa89392Copy full SHA for fa89392
1 file changed
sphinx_git/__init__.py
@@ -118,6 +118,7 @@ class GitChangelog(GitDirectiveBase):
118
'hide_author': bool,
119
'hide_date': bool,
120
'hide_details': bool,
121
+ 'hide_merge_commit': bool,
122
'repo-dir': six.text_type,
123
}
124
@@ -168,6 +169,9 @@ def _filter_commits_on_filenames(self, commits):
168
169
def _build_markup(self, commits):
170
list_node = nodes.bullet_list()
171
for commit in commits:
172
+ if self.options.get('hide_merge_commit') and len(commit.parents) > 1:
173
+ continue
174
+
175
date_str = datetime.fromtimestamp(commit.authored_date)
176
if '\n' in commit.message:
177
message, detailed_message = commit.message.split('\n', 1)
0 commit comments