Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nguyenvukhang/gitnu
enumerating git status
https://github.com/nguyenvukhang/gitnu
cli command-line-tool git rust
Last synced: 7 days ago
JSON representation
enumerating git status
- Host: GitHub
- URL: https://github.com/nguyenvukhang/gitnu
- Owner: nguyenvukhang
- License: mit
- Created: 2022-04-21T16:37:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-10T23:23:44.000Z (5 months ago)
- Last Synced: 2024-10-14T04:35:54.563Z (25 days ago)
- Topics: cli, command-line-tool, git, rust
- Language: Rust
- Homepage: https://crates.io/crates/gitnu
- Size: 19.5 MB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# gitnu
gitnu adds numbers to git status.
[![build status](https://github.com/nguyenvukhang/gitnu/workflows/ci/badge.svg?branch=main)](https://github.com/nguyenvukhang/gitnu/actions?query=branch%3Amain)
[![crates.io](https://img.shields.io/crates/d/gitnu?color=brightgreen)](https://crates.io/crates/gitnu)## Install
gitnu can be installed by running `cargo install gitnu`.
## Usage
```bash
$ git nu 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 `git nu 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:```bash
$ git nu add 2
$ git nu status
# On branch master
# Changes to be committed:
# 1 new file: README.md
#
# Untracked files:
# 2 .gitignore
# 3 doc/
# 4 src/
```In general, whenever you used to do
```
git [filenames and arguments]
```You can now use
```
git nu [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:
```bash
$ git nu add 2 5-7 # same as `git nu add 2 5 6 7`
```You can even mix file names with numbers.