Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Finding Common Ancestor in a merge hook

talg1978 April 11, 2022

Hello,

I'm writing a merge hook plugin, and I need to find the common ancestor of two commits (in order to enforce a certain workflow based on this information).

I'm kind of new to Java, but I understand now that commitService is an interface and the getCommonAncestor method is not implemented there.

  • Is there a concrete class implementing it?
  • Is there another way to get the common ancestor?
  • Maybe using the git api ? This might be even better, because I will need some more info from git down the road...

Thanks, Tal

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events