Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marc Coiffier
BHR
Commits
7c4b0512
Commit
7c4b0512
authored
Apr 01, 2019
by
Marc Coiffier
Browse files
Switch to a smoother autocommit workflow
parent
4c34fedc
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/git-stitch
deleted
100755 → 0
View file @
4c34fedc
#!/bin/bash
commit
=
"
$1
"
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
scripts/notify-build-success
View file @
7c4b0512
#!/bin/bash
notify-send
"Stack: Compilation completed successfully"
if
[
!
-e
.autocommit
]
;
then
git branch autocommit
||
:
git clone
-b
autocommit
.
.autocommit
fi
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"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment