• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. Skara
  4. git-info

git-info

  • Created by Erik Helin, last modified on Sep 04, 2020

Description

git-info shows OpenJDK information about a Git commit, for examples reviewers, link to issue(s) etc.

Usage

$ 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:

$ 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):

$ git info --reviewers --no-decoration 24e9d356df3
eosterlund, sjohanss


Show link to the review for commit 159f939a in the openjdk/skara repository:

$ 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:

$ git config --global info.title true
$ git config --global info.issues true

Source

Please see GitInfo.java.

Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 138, "requestCorrelationId": "c0abc94e94e82817"}