Skip to main content

A Git plugin to look up stuff like pending reviews, review URLs, etc from Gerrit

Setup

sudo pip install git-query

Configuration

Add the following lines to your .bash_profile:

export GERRIT_HOST='http://gerrit.example.com'
export GERRIT_USERNAME='your_username'
export GERRIT_TOKEN='your_api_token'  # explained below

Don’t forget to source (or reset your terminal session)!

Generating a Gerrit API Token

  1. Go to your Settings in Gerrit (in the menu when you click on your name in the top-right)

  2. Click HTTP Password

  3. Click Generate Password

Usage

You can either use git query or git ?. You will need to be in a repo that exists in Gerrit.

# get info from Gerrit about the current commit
git query
git ?

# list all Gerrit IDs for the current repo
git query -a
git query --all
git ? -a
git ? --all

# get info from Gerrit about a specific ID
git query 1234
git ? 1234

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git-query-0.0.2.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file git-query-0.0.2.tar.gz.

File metadata

  • Download URL: git-query-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for git-query-0.0.2.tar.gz
Algorithm Hash digest
SHA256 09f233c38b2d10ca895082a317e7b57918c6d6238898a387b8f54d8792115f73
MD5 b558f7d39a0992a411da6a4cbe6c4787
BLAKE2b-256 b6d6c5be287594a0f48beb84e61c386b5ed65ac501083b9b4d847d0f662abc02

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page