Commit 7c4b0512 authored by Marc Coiffier's avatar Marc Coiffier
Browse files

Switch to a smoother autocommit workflow

parent 4c34fedc
set -ue
git checkout history
git merge "$commit"
git checkout master-new
git reset --hard history
git rebase -i master
git checkout master
git merge master-new
git checkout history
git merge master
git checkout autocommit
git rebase history
notify-send "Stack: Compilation completed successfully"
if [ ! -e .autocommit ]; then
git branch autocommit || :
git clone -b autocommit . .autocommit
GIT_DIR=.autocommit/.git git commit -am "Successful build (on $(date))"
GIT_DIR=.autocommit/.git git push
git commit -am "Successful build (on $(date))"
notify-send "New commit pushed to the autocommit branch"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment