We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70105d9 commit c84560aCopy full SHA for c84560a
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,10 @@ 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'):
173
+ if len(commit.parents) > 1:
174
+ continue
175
+
176
date_str = datetime.fromtimestamp(commit.authored_date)
177
if '\n' in commit.message:
178
message, detailed_message = commit.message.split('\n', 1)
0 commit comments