https://github.com/tv42/staged
Run a command with the Git staged files
https://github.com/tv42/staged
Last synced: 4 months ago
JSON representation
Run a command with the Git staged files
- Host: GitHub
- URL: https://github.com/tv42/staged
- Owner: tv42
- License: mit
- Created: 2013-03-03T22:09:42.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-30T16:37:35.000Z (almost 11 years ago)
- Last Synced: 2025-01-30T08:13:57.094Z (6 months ago)
- Language: Go
- Size: 145 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
staged -- Run a command with the Git staged files
=================================================Put contents of Git index in a temporary directory and run a command
there. This makes unit testing "git add -p" results easy, and helps
you avoid the common problem where you forget to commit changes in
another file.Install with
go get github.com/tv42/staged
Use like this:
$ mkdir example
$ cd example
$ git init
$ echo first line >one
$ echo noise >two
$ git add one
$ staged ls
one
$ echo more >>one
$ cat one
first line
more
$ staged cat one
first line