Commit Format is a formatter for commits to paste into a Git Pull Request description.
gem install commit_format
# Print all commits on feature branch since branching off the default branch
# Only works when not on the default branch
commit-format
# Copy the output directly onto the clipboard on macOS
commit-format | pbcopy
# Print the range of formatted commits
commit-format HEAD~1..HEAD
# Prints the commits new in the 'my-feature' branch
commit-format main..my-feature
# Print the last 5 commits
commit-format -n 5
# Print all new commits since selected base branch
commit-format -b main
commit-format -b feature-branch
# Print all commits with text lines joined into a paragraph
commit-format --paragraph
commit-format -p
# For example:
A commit message with multiple text lines
across multiple lines.
# Becomes
A commit message with multiple text lines across multiple line.
bundle install
Use mono to create a changeset per change.
mono changeset add
bundle exec rspec
mono publish