-
The command Is there a way to pass '--first-parent' as an option to |
Beta Was this translation helpful? Give feedback.
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.
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.