Skip to main content

check_git_repos

A simple utility script to check git repos contained underneath a given directory, reporting if any of the repos contain changes that need to be upstreamed.

Usage

usage: check_git_repos [-h] [--include-hidden] [path]

Check the status of git repositories in a directory

positional arguments:
  path              if given, the directory to start looking from, otherwise the directory will be used

optional arguments:
  -h, --help        show this help message and exit
  --include-hidden  whether to look in hidden directories

Checked issues:

Repo level issues:

  • untracked_files the repo has files which aren't tracked
  • dirty_files the repo has dirty files which need to be committed

Branch level issues:

The reporting format is branch_issues: [branch] ([issue])

  • missing_upstream a branch exists that has no upstream
  • unpushed_changes a branch has commits that don't exist upstream

Development

The project is built using poetry, and has a makefile for development:

  • clean: clean up build artifacts
  • develop: install the project to a virtual environment
  • format: format files using black
  • publish: publish the project to pypi (given you have credentials)

Once make develop is run, you can run the development version with poetry run check_git_repos

Download files

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

Source Distribution

check_git_repos-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

check_git_repos-1.0.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file check_git_repos-1.0.0.tar.gz.

File metadata

  • Download URL: check_git_repos-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.9.6 Linux/5.10.88

File hashes

Hashes for check_git_repos-1.0.0.tar.gz
Algorithm Hash digest
SHA256 980c425d4badc525c41dae69e5b39c0fd2be4707a994b108bc38e456b45ab806
MD5 3e203512da16442f63849de762f74833
BLAKE2b-256 81cfe28f915b5387c2115393136c41b6651a6d1040f3288bbbdb89ac3610251d

See more details on using hashes here.

File details

Details for the file check_git_repos-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: check_git_repos-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.9.6 Linux/5.10.88

File hashes

Hashes for check_git_repos-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31787c9c8ad2a97949cb99c52767a5739fc48e06d2910f0761d62d2554f97f48
MD5 c255c4653f1684a2756d2773340df685
BLAKE2b-256 4edb40e4459fbfa779cba9a2f5b6e3713d1380b1d6d079d54d1762673e7f3c6e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page