r-lib / gert

Simple git client for R
https://docs.ropensci.org/gert/
Other
146 stars 31 forks source link

Could git_commit_info() indicates whether a commit is a merge? #182

Closed maelle closed 2 years ago

maelle commented 2 years ago

The output of gert::git_log() includes a "merge" variable, would there be an easy way to also have that variable in the output of git_commit_info()?

jeroen commented 2 years ago

You can infer this from the length of $parents in git_commit_info(). A merge commit has more than 1 parent.

maelle commented 2 years ago

Oh, thank you! :pray: Makes sense :sweat_smile: