How to simplyfy getting the patch for one changeset in git?

Posted by childno.de on Stack Overflow See other posts from Stack Overflow or by childno.de
Published on 2012-08-27T21:37:16Z Indexed on 2012/08/27 21:38 UTC
Read the original article Hit count: 148

Filed under:
|

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"

© Stack Overflow or respective owner

Related posts about git

Related posts about syntax