Skip to main content

Enumerate git status

Project description

gitnu

gitnu is script that adds numbers to git status.

Install

gitnu can be installed by running pip install gitnu.

If you can't wait for the absolute blazingly latest awesomeness and want to install directly from GitHub, use:

pip install git+https://github.com/nguyenvukhang/gitnu

Usage

$ gitnu status
# On branch master
# Untracked files:
# 1       .gitignore
# 2       README.md
# 3       doc/
# 4       src/
#
# nothing added to commit but untracked files present

Note the similarity of the output gitnu status to that of git status.
They are identical except for the numbers in front of filenames.

After gitnu status, you can now use numbers in place of filenames for git commands:

$ gitnu add 2
$ gitnu
# On branch master
# Changes to be committed:
# 1       new file:   README.md
#
# Untracked files:
# 2       .gitignore
# 3       doc/
# 4       src/

(gitnu without arguments defaults to gitnu status)

In general, whenever you used to do

git <command> [filenames and arguments]

You can now use

gitnu <command> [file numbers and arguments]

gitnu will silently replace numbers with their filenames and pass everything else intact into git.

gitnu accepts multiple arguments and even number ranges:

$ gitnu add 1 2 5-8

has the same result as typing

$ gitnu add 1 2 5 6 7 8

Project details


Download files

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

Source Distribution

gitnu-0.1.1a4.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

gitnu-0.1.1a4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file gitnu-0.1.1a4.tar.gz.

File metadata

  • Download URL: gitnu-0.1.1a4.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for gitnu-0.1.1a4.tar.gz
Algorithm Hash digest
SHA256 616be2c275556d76af554ec592a0fcfe35f6257672e7a35b0e871538e813acab
MD5 06676db1fe81827755a74e88b5dede62
BLAKE2b-256 17e1dda51889eeceeed857b1b42194ce9ce3bd10fbddc40a1f0a9d84200ae7ce

See more details on using hashes here.

File details

Details for the file gitnu-0.1.1a4-py3-none-any.whl.

File metadata

  • Download URL: gitnu-0.1.1a4-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for gitnu-0.1.1a4-py3-none-any.whl
Algorithm Hash digest
SHA256 eb7601ffa153ed93e29765a7398830fcd4292e1ef30589afd25c61704ba66bee
MD5 c0225250997424284c112bc44409f0bf
BLAKE2b-256 9c99aab0dd080b17fcf7dfeb0e362dcdc1cacd74b71c70574eed1335c1307f05

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page