-
The command Is there a way to pass '--first-parent' as an option to |
Beta Was this translation helpful? Give feedback.
Answered by
Byron
Oct 8, 2021
Replies: 1 comment
-
As the documentation of Passing arguments works in most of the GitPython API, here is more on how parameters are converted to CLI flags. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Byron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As the documentation of
iter_commts()
suggests keyword arguments can be used to pass additional arguments to the underlying git command. Specifically,repo.iter_commits(first_parent=true)
should do the job.Passing arguments works in most of the GitPython API, here is more on how parameters are converted to CLI flags.