Hi, I just want to add my 0.02 of git knowledge inline below
on Sunday 29 September 2013 Cristian Oneț wrote: > Hi, > > I would like to share the following workflow which makes posting review > request easier (I posted the full workflow considering that I work on > 'improve_something'): > > 1. (master) $git up > 2. (master) $git branch improve_something > 3. git co improve_something One can combine 2. and 3. a single step 2. git co improve_something -b > 4. Change code/build/test > 5. (improve_something) $git ci > 6. git post-review > 7. (improve_something) $git ci --amend > 8. Add the REVIEW: id to the commit message > 9. After the commit has been reviewed What do we need to do when we want to update an existing review? I read something about a '-r' option to post-review. Can you elaborate on this? > 10. (master) $git up > 11. (master) $git co improve_something > 12. (improve_something) $git rebase master > 13. (improve_something) $git co master > 14. (master) $git merge improve_something Not so sure about 11. and 12. This certainly works as long as you always use the --amend option to commits because then you only have one commit entry in the history and add that to master. In case you keep multiple commits on the feature-branch (improve_something) then I suggest to do the following alternatively: 10. (master) git up 11. (master) git merge --no-ff --no-commit improve_something 12. Build and test, if it fails, revert the merge (which is not committed) and continue working, otherwise continue with 13. 13. (master) git commit 14. noop I am missing a build/test cycle in your sequence. Since master might have received some changes that are incompatible with the patch, one really needs to do tests here. > 15. (master) $git format-patch origin/master --stdout (last check before > push) > 16. (master) $git push > 17. (master) $git branch -D improve_something > > I have the following aliases in ~/.gitconfig > > [alias] > ci = commit > up = pull --rebase > co = checkout > post-review = !post-review > -- Regards Thomas Baumgart GPG-FP: E55E D592 F45F 116B 8429 4F99 9C59 DB40 B75D D3BA ------------------------------------------------------------- Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots. -------------------------------------------------------------
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ KMyMoney-devel mailing list KMyMoney-devel@kde.org https://mail.kde.org/mailman/listinfo/kmymoney-devel