Skip to content

Support the git log --merges option #799

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

Merged
merged 1 commit into from
May 15, 2025
Merged

Support the git log --merges option #799

merged 1 commit into from
May 15, 2025

Conversation

jcouball
Copy link
Member

@jcouball jcouball commented May 15, 2025

Introduce the ability to filter commits to only include merge commits when using Git::Base#log.

Example:

log = git.log
  .max_count(:all)
  .merges

This enhancement adds a new method to the Git::Log class to enable this functionality and updates the relevant log commands accordingly.

Since the --merges option to git log only filters the results, I thought it was sufficient to just test that the option was added to the git log command when appropriate.

Fixes #788

@jcouball jcouball merged commit df3b07d into master May 15, 2025
8 checks passed
@jcouball jcouball deleted the log_merges_option branch May 15, 2025 17:59
@jcouball jcouball changed the title Support for git log --merges option Support the git log --merges option May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--mergessupport for Git log
1 participant