Skip to main content

GPLv3 License PyPi Version

git-scripts

This project is a collection of scripts that increase the functionality of git commands.

Installation

To install git-scripts, in your terminal, type: pip install git-scripts

Scripts

  • git-ver: a script that reads a project's configuration file to find its (semantic-versioned) version number, increments the number, and adds any unstaged/untracked files in the working directory and commits them all
    • usage: git_ver.py [-h] [-d DIRPATH] [-l {CRITICAL,ERROR,WARN,INFO,DEBUG,NOTSET} {major,minor,patch,subpatch,alpha,unalpha}]
    • positional argument:
      • indicates the portion of the version number to be incremented; the choices are:
        • major
        • minor
        • patch
        • subpatch
        • alpha (alias for subpatch)
        • unalpha (doesn't increment anything but removes the the subpatch [e.g. -alpha0] suffix)
    • -h (--help): display the script's usage information
    • -d (--dir): use this flag and follow it with a directory path to indicate a git repository directory that is different from the current working directory
    • -l (--log-level): use this flag to set the lowest level of logs to actually log to the console; in decending order of strictness, these are the choices:
      • critical
      • error
      • warn
      • info (default)
      • debug
      • notset
    • Examples (after aliasing git_ver.py to git-ver):
      • git-ver rust major -l debug
        • assuming the rust project's version was 1.2.3-alpha2, the script would update that to 2.0.0 and commit that change and anything else in the index
      • git-ver python unalpha -d ../some-project
        • assuming that the python project's version was 2.0.1-alpha1 and the current working directory is anything except some-project, the script would look into some-project, update the version to 2.0.1 and commit that change and anything else in the index

Release files for git-scripts 2.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 git-scripts 2.0.0
File Size Uploaded
git-scripts-2.0.0.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for git-scripts 2.0.0
File Interpreter ABI Platform
git_scripts-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.7 kB

Release files / git-scripts-2.0.0.tar.gz

Download URL git-scripts-2.0.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
926fee824890e404ffa28206355242dbcc2df1fd31d6478055f7c10d0a9321e9
BLAKE2b-256 checksum
How to use checksums
f41c68f88f03931880b01f0b292ab9a94c233482fce38ae47f6bc6f385fb5873
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.0

Release files / git_scripts-2.0.0-py3-none-any.whl

Download URL git_scripts-2.0.0-py3-none-any.whl
Size 36.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2706ebd9a58688c4d56dfacfbc2ee0941a9e176bd121dc584ccbb9845749d6a0
BLAKE2b-256 checksum
How to use checksums
41ee4e7817435c2b7034204b77d42c9bed97d69261f17a40deb065410c7ae05d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

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