How to simplyfy getting the patch for one changeset in git?
- by childno.de
git revision syntax is really powerful, but I can't find how to simplify things like:
git diff 1a2e^..1a2e
without writing tree'sh1 twice?
Is there now "NEXT" syntax, something like:
git diff 1a2e^..NEXT
OR
git changeset 1a2e
??
Another "next" syntax which might be useful if 1a2e is a known revision:
git cherry-pick 1a2e+NEXT..origin/featureBranch
^^ "cherry pick anything from 1a2e to master EXCEPT 1a2e itself"