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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 616be2c275556d76af554ec592a0fcfe35f6257672e7a35b0e871538e813acab |
|
MD5 | 06676db1fe81827755a74e88b5dede62 |
|
BLAKE2b-256 | 17e1dda51889eeceeed857b1b42194ce9ce3bd10fbddc40a1f0a9d84200ae7ce |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb7601ffa153ed93e29765a7398830fcd4292e1ef30589afd25c61704ba66bee |
|
MD5 | c0225250997424284c112bc44409f0bf |
|
BLAKE2b-256 | 9c99aab0dd080b17fcf7dfeb0e362dcdc1cacd74b71c70574eed1335c1307f05 |