graph.c
4.24 KB
-
graph: handle not finding a merge base gracefully · ce2e8269
git_merge_base() returns GIT_ENOTFOUND when it cannot find a merge base. graph_desdendant_of() returns a boolean value (barring any errors), so it needs to catch the NOTFOUND return value and convert it into false, as not merge base means it cannot be a descendant.
Carlos Martín Nieto committed