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.1a5.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gitnu-0.1.1a5.tar.gz
  • Upload date:
  • Size: 9.2 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.1a5.tar.gz
Algorithm Hash digest
SHA256 e4f6217c65edeeec44fd381db6967478600436f7d0a60f1a78e6b864d12c74bf
MD5 ae89e154ee6d1e02256788f114872fbe
BLAKE2b-256 04d45efcaef5cab2bb4eca6f0a1f6b2c66a2b6ea8955aca7fb5ad3d36c73c9ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gitnu-0.1.1a5-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.1a5-py3-none-any.whl
Algorithm Hash digest
SHA256 fb6830b5bfc05d38160e74a7d48119aaa87b963c42203f3b531f10999e635f35
MD5 d1c0d13af1e28ccc3414460b1af08351
BLAKE2b-256 b4ec6feb94b0f241b23966c4974422cc175e537422ffcba7e2a6377e42f5a473

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