Move committing out into other script
This commit is contained in:
parent
f8c6e84062
commit
855c6fbc4b
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Usage: ./commit.sh
|
||||
|
||||
for d in $(ls "$HOME/.abra/apps/"); do
|
||||
cd "$HOME/.abra/apps/$d"
|
||||
if ! git diff --quiet --exit-code; then
|
||||
git commit -m "gardening commit"
|
||||
git push origin $(git branch --quiet | cut -d' ' -f2-)
|
||||
fi
|
||||
done
|
|
@ -31,7 +31,5 @@ for d in $(ls "$HOME/.abra/apps/"); do
|
|||
* ) continue;;
|
||||
esac
|
||||
git add -p
|
||||
git commit -m "Gardening: s/$SEARCH_PATTERN/$REPLACE_PATTERN/g"
|
||||
git push origin $(git branch --quiet | cut -d' ' -f2-)
|
||||
fi
|
||||
done
|
||||
|
|
Reference in New Issue