summaryrefslogtreecommitdiff
path: root/doc/todo/fail_if_modification_not_commited_when_using_--spin/comment_3_c69eaa9c6ae5b07b5c2dd2591de965a3._comment
blob: 60bdf59761a685b2de11c911b153eb0601b2f029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[[!comment format=mdwn
 username="joey"
 subject="""comment 3"""
 date="2014-11-23T21:12:19Z"
 content="""
Here's a almost-script to do it, which worked when it did it by hand:

<pre>
get old-head
get curr-branch (refs/heads/master eg)
find old-commit (look back through git log for the first commit that was not "propellor spin")
git reset old-commit
git commit -a # user gets to edit commit message for all the spins and any staged changes here
git merge -S -s ours old-head
get current-commit (result of merge)
git update-ref curr-branch current-commit
git checkout curr-branch
</pre>
"""]]