-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add options allowing to select how the log is extracted (cut branches) #321
Comments
Hey @eburghar, |
Thanks @oknozor for your interest. Yes, |
General guidelinesFirst you can get some general info about how to write test and setup the project here: https://github.com/cocogitto/cocogitto/blob/main/CONTRIBUTING.md Implementing the featureThe current implementation uses git2::Repository::revwalk to explore the commit tree: Line 330 in 17f98dc
You need to create an alternate method to get only the commit first parent using recursion on git2::Commit::parent. Note that it still support the RevSpecPattern used by the current implementation. Trying to reach a commit that's not in the flat (first-parent) tree should produce an error . Once this is done a I am not sure if this is needed but it might be interesting to add a |
note that revwalk has a |
Is your feature request related to a problem? Please describe.
If you have feature branches and don't want to squash them before merging, considering that cog for now is following the whole commit tree, you end up with some details in your history you don't want necessarily in you CHANGELOG.md.
git log
has specific options for this use case (--merges
,--first-parent
, ...)Describe the solution you'd like
Add a
--first-parent
option likegit log --first-parent
that only consider the active branch when looking for changes.Describe alternatives you've considered
If you only follow conventional commit on your main branch and not in your feature branch you can achieve the same effect at the expense of phony error messages, but you loose the ability of generating a myfeature.md which is useful if you want a detailed log about a user story that is tracked by the same feature branch.
Additional context
Requirement in SAFE methodology
The text was updated successfully, but these errors were encountered: