File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -47,21 +47,27 @@ def get_contributors(self) -> list[str]:
47
47
self .option_over_conf ("email" , "scm_contribs_email" ),
48
48
("true" , "false" ),
49
49
)
50
- flags += ["-e " ] if contribs_email == "true" else []
50
+ flags += ["--email " ] if contribs_email == "true" else ["--no-email" ]
51
51
52
52
contribs_sort = directives .choice (
53
53
self .option_over_conf ("sort" , "scm_contribs_sort" ),
54
54
("name" , "num" ),
55
55
)
56
- flags += ["-n " ] if contribs_sort == "num" else []
56
+ flags += ["--numbered " ] if contribs_sort == "num" else ["--no-numbered" ]
57
57
58
58
contribs_type = directives .choice (
59
59
self .option_over_conf ("type" , "scm_contribs_type" ),
60
60
("author" , "committer" ),
61
61
)
62
- flags += ["-c" ] if contribs_type == "committer" else []
63
-
64
- git_shortlog_options = ["-s" , * flags , "--" , docfile_name ]
62
+ flags += ["--committer" ] if contribs_type == "committer" else ["--no-committer" ]
63
+
64
+ git_shortlog_options = [
65
+ "--summary" ,
66
+ * flags ,
67
+ "HEAD" ,
68
+ "--" ,
69
+ docfile_name ,
70
+ ]
65
71
66
72
contributors = []
67
73
git_shortlog = Git (docdir_path ).shortlog (* git_shortlog_options )
You can’t perform that action at this time.
0 commit comments