git - Review changes from multiple commits -


i'm using git-svn work svn repository. 1 of things want able review changes git diff , nice options.

sometimes, "work-in-progress" changes committed svn, , want wait until work finished before reviewing. i'm wondering if there's invocation of git diff let me see these related changes, without intervening commits.

visually, have:

* e00 yet more irrelevant stuff * a04 finish work * a03 more wip * d00 irrelevant stuff * a02 more wip * c00 other irrelevant stuff * a01 more wip * a00 start wip * b00 state of tree before wip starts 

i want able see cumulative effect of a** commits on top of b00, without c00, d00, or e00. git diff b00 a04 has irrelevant changes. git show a0{0,1,2,3,4} gives intermediate noise.

i'd able without creating throw-away branch, current approach does.

similar questions here , here.

you need temporary place aggregate changes, current method fine. can use unnamed branch (a "detached head") make automatically go away:

$ git checkout --detach b00 

(or without --detach, a00^: either way, current b00 detach head), before:

$ git cherry-pick a0{0,1,2,3,4} $ git diff master... $ git checkout master 

and you're done: there's no branch delete.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -