Hi Nicholas, How big could the collection be, and what is a typical size - is it just two hashes? Also how come those particular hashes are chosen - why was it them, what happened to cause the enquiry etc. ?
You can use --merge-base to find the common branch points, or maybe the three-dot notation for when it's just two 03c19c71...3572c7d6. Do note that branch names are temporary, so choosing the right branch name for a hash that's been merged is not something that Git is guaranteed to know. The merge commit may have recorded the branch name if it was an automated merge but the merge commit message can be edited (at the time). At the moment the googlegroups is down for me - hope it wasn't the European data centre that caught fire and has lost data.. Philip On 10/03/2021 04:49, Nicholas Yue wrote: > Hi Philip, > > Here is an attempt to describe the requirements and usecase. > > Given a collection of hashes e.g. [03c19c71, 3572c7d6], figures out > the branch point at 82ab1b9f, generate dot graph of commits from > branch point to each hashes in the collection > > I want to determine if such a tool already exists before I start > writing one. > > We have various productions pegging on specific git hash to deploy > their tools, such a graph will give non-development stakeholder and > visual map of differences so as to make production decision as to the > pros and cons of match their respective production chosen tag with > e.g. a newer tag > > Using the OpenSubdiv git repo as a reference > > Partial output from `git log --oneline --graph` > * ff76e0f2 Release 3.4.4 > * cab44bea Merge pull request #1216 from davidgyu/dev_glloader_update > |\ > | * 33a3d3bc Merged GL Api Loader fixes from USD > * | 22e01871 Merge pull request #1220 from > davidgyu/dev_additional_docutils_fix > |\ \ > | * | c5389531 Additional fix/cleanup for FindDocutils.cmake > * | | c3a1d500 Merge pull request #1219 from > davidgyu/dev_release_branch_updates2 > |\ \ \ > | |/ / > |/| | > | * | 87d2db0f Additional renaming fix missed in previous commit > * | | 4425a470 Merge pull request #1213 from virtualritz/dev > |\ \ \ > | |/ / > |/| | > | * | f44c3e9b Fixed FindDocutils.cmake for broken rst2html case. > * | | fa7bb9f9 Merge pull request #1218 from > davidgyu/dev_release_branch_updates > |\ \ \ > | * | | 37e84682 Updated for rename of 'master' branch to 'release' > |/ / / > * | | ed544590 Merge pull request #1214 from > davidgyu/dev_macos_frameworks_fix > |\ \ \ > | * | | bb0b366c Fixed macOS static framework > | | |/ > | |/| > * | | 84e0e3de Merge pull request #1206 from thomthom/cmake-sub-project > |\ \ \ > | * | | ce90f0fc Adjustments to CMake config for use as a sub-project. > | |/ / > * | | 5772f3a5 Merge pull request #1217 from > davidgyu/dev_farviewer_hbr_fix > |\ \ \ > | * | | cc60e9ed Removed obsolete references to hbr from farViewer > | |/ / > * | | e1c99e68 Merge pull request #1215 from davidgyu/dev_dl_link_fix > |\ \ \ > | |/ / > |/| | > | * | 654a5396 Fixed link dependency on dl library > |/ / > * | 62ddd17b Merge pull request #1208 from > barfowl/far_unrefine_maxlevel_bug > |\ \ > | * | 03c19c71 Fixed Far::TopologyRefiner::GetMaxLevel() after call to > Unrefine(): - reset _maxLevel member to 0 in Unrefine() > * | | 0d117082 Merge pull request #1207 from > barfowl/far_stencil_precision_bug > |\ \ \ > | |_|/ > |/| | > | * | 75e31d88 Fixed bug in double precision template for > Far::StencilTableFactory: - added missing template parameter with > use of Far::PrimvarRefiner > | |/ > * | 3572c7d6 Merge pull request #1203 from barfowl/far_sparse_fvar_bug > |\ \ > | * | c1dd0bdf Fixed bug in sparse refinement where face-varying > topology differs: - do not select face if incomplete, i.e. not > descended from specified face > | |/ > * | c85f4bba Merge pull request #1205 from c64kernal/dev_p3 > |\ \ > | |/ > |/| > | * dc368d0d Python 3 updates to build script > |/ > * 82ab1b9f Release 3.4.3 > * fd668d64 Merge pull request #1193 from > davidgyu/dev_additional_link_fix > |\ > | * e7dfecc3 Additional fixes for dynamic and static linking > |/ > * 0ca74b2e Release 3.4.2 > > On Tue, 9 Mar 2021 at 15:03, Philip Oakley <philipoakley@iee.email> wrote: > > Nicholas, > > What's the background to your use case. How did this list > originate? does it have any natural order? do you want an ascii > graph, in the order given, or date order, or parent & branch > order? etc. > > Also, what have you already tried (e.g. the various --graph & > decoration options to log & show)? > > Philip > > On Tuesday, March 9, 2021 at 8:07:16 PM UTC yue.ni...@gmail.com > <mailto:yue.ni...@gmail.com> wrote: > > Hi, > > Given a collection of git hashes, is there any handy > tool/script that can graph their relationship? > > Cheers > > -- > You received this message because you are subscribed to the Google > Groups "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, > send an email to git-users+unsubscr...@googlegroups.com > <mailto:git-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > > https://groups.google.com/d/msgid/git-users/90140159-2c25-4fa7-b910-d63f86934ed8n%40googlegroups.com > > <https://groups.google.com/d/msgid/git-users/90140159-2c25-4fa7-b910-d63f86934ed8n%40googlegroups.com?utm_medium=email&utm_source=footer>. > > > > -- > Nicholas Yue > Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5 > Custom Dev - C++ porting, OSX, Linux, Windows > http://au.linkedin.com/in/nicholasyue > <http://au.linkedin.com/in/nicholasyue> > https://vimeo.com/channels/naiadtools > <https://vimeo.com/channels/naiadtools> > -- > You received this message because you are subscribed to the Google > Groups "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to git-users+unsubscr...@googlegroups.com > <mailto:git-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/git-users/CADYXiJ%2Brv5BHw5rN_5qbwx4ZTd%2BgZfjd%3D32CqAg-3kzSdFzH0A%40mail.gmail.com > <https://groups.google.com/d/msgid/git-users/CADYXiJ%2Brv5BHw5rN_5qbwx4ZTd%2BgZfjd%3D32CqAg-3kzSdFzH0A%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/29f5e388-3ccd-a6f4-8925-f20ff17f12f2%40iee.email.