A simple script to make the commands 'git status'/'git diff' or 'hg status'/'hg diff' run with a one key command - the s key.
Project description
StatKey
=======
Get the status of a git repo with a one key command:
$ cd ~/mygitrepo
$ s
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Or a mercurial repo, and it will show a diff for either type of repo if it is < 80 lines:
$ cd ~/mymercurialrepo
$ s
diff -r d511abd3422a bin/p
--- a/bin/p Thu Feb 19 21:25:35 2015 +0800
+++ b/bin/p Thu Feb 19 23:52:35 2015 +0800
@@ -25,8 +25,8 @@
fi
-#if [ "$1" == "d" ]; then
-# cd $PROJECTDIR
-# bash
-#fi
+if [ "$1" == "d" ]; then
+ cd $PROJECTDIR
+ bash
+fi
==========
M bin/p
Install
=======
First ensure you have python pip installed, then run:
$ sudo pip install statkey
=======
Get the status of a git repo with a one key command:
$ cd ~/mygitrepo
$ s
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Or a mercurial repo, and it will show a diff for either type of repo if it is < 80 lines:
$ cd ~/mymercurialrepo
$ s
diff -r d511abd3422a bin/p
--- a/bin/p Thu Feb 19 21:25:35 2015 +0800
+++ b/bin/p Thu Feb 19 23:52:35 2015 +0800
@@ -25,8 +25,8 @@
fi
-#if [ "$1" == "d" ]; then
-# cd $PROJECTDIR
-# bash
-#fi
+if [ "$1" == "d" ]; then
+ cd $PROJECTDIR
+ bash
+fi
==========
M bin/p
Install
=======
First ensure you have python pip installed, then run:
$ sudo pip install statkey
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
statkey-0.2.tar.gz
(3.4 kB
view details)
File details
Details for the file statkey-0.2.tar.gz.
File metadata
- Download URL: statkey-0.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8dea36781dc46f05f4f8708303b738647732d50734c879b3b8e843f09081bac
|
|
| MD5 |
f4e626ba2d641e733954a013ce56d792
|
|
| BLAKE2b-256 |
0a8f8460883dcf78bb3ff3dfa0e776587ffdc9e4dabae50c7a22671f2cfd01aa
|