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

Release files for check-git-repos 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for check-git-repos 1.0.0
File Size Uploaded
check_git_repos-1.0.0.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for check-git-repos 1.0.0
File Interpreter ABI Platform
check_git_repos-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size:5.8 kB

Release files / check_git_repos-1.0.0.tar.gz

Download URL check_git_repos-1.0.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
980c425d4badc525c41dae69e5b39c0fd2be4707a994b108bc38e456b45ab806
BLAKE2b-256 checksum
How to use checksums
81cfe28f915b5387c2115393136c41b6651a6d1040f3288bbbdb89ac3610251d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.10 CPython/3.9.6 Linux/5.10.88

Release files / check_git_repos-1.0.0-py3-none-any.whl

Download URL check_git_repos-1.0.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31787c9c8ad2a97949cb99c52767a5739fc48e06d2910f0761d62d2554f97f48
BLAKE2b-256 checksum
How to use checksums
4edb40e4459fbfa779cba9a2f5b6e3713d1380b1d6d079d54d1762673e7f3c6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.10 CPython/3.9.6 Linux/5.10.88

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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