How can I find all rebased versions of a commit?

Assume the following history of commits, each commit is also a branch.

M - A - B
 \
  C

I then rebase B on top of C. I will now have

M - A
 \
  C - A' - B'

My question, is that given commit A, can I "discover" A'? Or given A', can I "discover" A?

To be more specific, I am given a commit hash XYZ, can I get all the commit hashes of all other commits who are the "rebased versions" of it?



Read more here: https://stackoverflow.com/questions/66321953/how-can-i-find-all-rebased-versions-of-a-commit

Content Attribution

This content was originally published by lorg at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: