commit-reach(repo_get_merge_bases_many): pass on "missing commits" errors
The `merge_bases_many()` function was just taught to indicate parsing errors, and now the `repo_get_merge_bases_many()` function is aware of that, too. Naturally, there are a lot of callers that need to be adjusted now, too. Next stop: `repo_get_merge_bases_dirty()`. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
f87056ce40
commit
5317380521
@ -461,17 +461,13 @@ static int get_merge_bases_many_0(struct repository *r,
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct commit_list *repo_get_merge_bases_many(struct repository *r,
|
||||
struct commit *one,
|
||||
int n,
|
||||
struct commit **twos)
|
||||
int repo_get_merge_bases_many(struct repository *r,
|
||||
struct commit *one,
|
||||
int n,
|
||||
struct commit **twos,
|
||||
struct commit_list **result)
|
||||
{
|
||||
struct commit_list *result = NULL;
|
||||
if (get_merge_bases_many_0(r, one, n, twos, 1, &result) < 0) {
|
||||
free_commit_list(result);
|
||||
return NULL;
|
||||
}
|
||||
return result;
|
||||
return get_merge_bases_many_0(r, one, n, twos, 1, result);
|
||||
}
|
||||
|
||||
struct commit_list *repo_get_merge_bases_many_dirty(struct repository *r,
|
||||
|
Reference in New Issue
Block a user