Is there a way to achieve the equivalent of
git branch --merged
using git plumbing commands?
I know there are commands like git for-each-ref
which gives you the commit hashes and their corresponding ref names. Is there a command to tell whether a commit is reachable from another commit (which is basically what --merged
do)?