Description
git-info shows OpenJDK information about a Git commit, for examples reviewers, link to issue(s) etc.
Usage
Code Block | ||
---|---|---|
| ||
$ git info -h
usage: git-info [options] <REV>
--no-decoration Do not prefix lines with any decoration
--title Show title of commit message
--issues Show link(s) to issue(s)
--reviewers Show reviewers
--review Show link to review
--summary Show summary (if present)
--sponsor Show sponsor (if present)
--author Show author
--contributors Show contributors
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
-h, --help Show this help text |
Examples
Show information about commit 24e9d356df3 in the openjdk/jdk:
Code Block | ||
---|---|---|
| ||
$ git info 24e9d356df3
Title: 8252368: Undo JDK-8245002: Windows GDI functions don't support NUMA interleaving
Author: Stefan Karlsson <stefank@openjdk.org>
Reviewers: eosterlund, sjohanss
Issue: https://bugs.openjdk.java.net/browse/JDK-8252368 |
Show only reviewers for commit 24e9d356df3 in the openjdk/jdk and do not output any decoration (useful for scripting purposes):
Code Block | ||
---|---|---|
| ||
$ git info --reviewers --no-decoration 24e9d356df3
eosterlund, sjohanss |
Show link to the review for commit 159f939a in the openjdk/skara repository:
Code Block | ||
---|---|---|
| ||
$ git info --review 159f939a
Review: https://git.openjdk.java.net/skara/pull/758 |
(note that git-info
can only shows links to reviews that have been done via pull requests)
Configuration
All flags to git-info are configurable, so that you can customize the default output. For example, the following configuration make git-info only show the title and link to any issues by default:
Code Block | ||
---|---|---|
| ||
$ git config --global info.title true
$ git config --global info.issues true |