Git commands.
This directory contains make
rules for working with Git.
Usage: make <command> [<ENV_VAR>=<value> <ENV_VAR>=<value> ...]
Provides an interactive prompt for creating a Git commit message in accordance with the project's Git style guide.
$ make commit
Retries a previous commit created using make commit
.
$ make retry-commit
This is particularly useful if a commit failed due to lint errors. An example workflow might proceed as follows:
# Stage changed files and attempt to commit the changes:
$ git add . && make commit
# Suppose `make commit` fails due to lint errors, so we resolve the lint errors.
# Stage the changes and re-attempt the commit, without having to re-enter commit info:
$ git add . && make retry-commit
Applies Git notes from the docs/git-notes
directory to their corresponding commits.
$ make apply-git-notes
This is useful for fixing commit messages which contain errors or do not adhere to the project's Git style guide and to exclude certain commits from the changelog notes for specific packages.