How can I make git log to show cherry-picked commits on the same line? -
if run "git log --graph --oneline --branches=* --date-order" on git repository 2 branches , 3 shared commits can this:
* hash9 comment6 * hash8 comment5 * hash7 comment4 | * hash6 comment6 | * hash5 comment5 | * hash4 comment4 | * hash3 comment3 |/ * hash2 comment2 * hash1 comment1
is possible instead this?:
* * hash9 hash6 comment6 * * hash8 hash5 comment5 * * hash7 hash4 comment4 | * hash3 comment3 |/ * hash2 comment2 * hash1 comment1
you have write own graph drawing program. graph drawing code in git log
not clever.
your graph drawing program need git cherry
or (probably better) lower level cousin git patch-id
.
it whether compare commit messages. if do, commit a123456 copy of commit b987654 if message differs? if difference 1 of them says (cherry picked commit ...)
, other not? id in string may not match either commit, if both cherry-picked (one -x
, 1 without -x
) third commit; third commit may no longer in portion of graph drawing, or in repository, if has aged out , been garbage-collected (e.g., due rebase).
what if, branch tip a
, find commit sequence:
* a555555 last commit * a444444 fourth commit * a333333 third commit * a222222 second commit * a111111 first commit * a000000 common base
and branch tip b
find sequence:
* xxxxxxx second commit * xxxxxxx last commit * xxxxxxx fourth commit * xxxxxxx third commit * xxxxxxx first commit * a000000 common base
how show case? make lot of these sorts of chains when start branch experimental work, , make new version of , rebase more sensible order before reworking specific commits.
Comments
Post a Comment