summaryrefslogtreecommitdiff
path: root/include/git2/diff.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-04-08 16:52:20 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-04-08 16:52:20 +0200
commitce2e82694a19b9994acaa9376bff81bc8e968637 (patch)
tree9cc64b5202f7711afc72da4e67d0ad0adbb8033e /include/git2/diff.h
parent2795fb4ddd69ca72828c2d4f1b94b77e4d91db48 (diff)
downloadlibgit2-ce2e82694a19b9994acaa9376bff81bc8e968637.tar.gz
graph: handle not finding a merge base gracefully
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.
Diffstat (limited to 'include/git2/diff.h')
0 files changed, 0 insertions, 0 deletions