Created
April 20, 2010 00:03
-
-
Save jmathai/371828 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ease staging of files | |
for i in $(git status | grep -A 10000 "not updated" | grep modified) ; do | |
if [ -f $i ] ; then | |
git diff $i; | |
echo -n "Add this to stage? [y/n]: "; | |
read ans; | |
if [ "$ans" == "y" ] ; then | |
git add $i; | |
echo "++++++ Added to stage ($i) ++++++"; | |
fi; | |
fi; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment