]> Kevux Git Server - rit/commit
commit-reach: introduce merge_base_flags enum
authorKristofer Karlsson <krka@spotify.com>
Mon, 11 May 2026 12:59:11 +0000 (12:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 May 2026 00:33:43 +0000 (09:33 +0900)
commit53f9561055e8377a18a2430262857a3650c73dab
tree3063107ffa5d1e33149ac640af6aed0502f0872f
parent94f057755b7941b321fd11fec1b2e3ca5313a4e0
commit-reach: introduce merge_base_flags enum

Replace the boolean ignore_missing_commits parameter in
paint_down_to_common() with an enum merge_base_flags, and thread
the flags through merge_bases_many(), get_merge_bases_many_0(),
and the public repo_get_merge_bases_many_dirty() API.

This makes callsites with boolean parameters easier to read and
prepares the function for additional flags in a subsequent commit.

No functional change: the single caller that used
ignore_missing_commits (repo_in_merge_bases_many) now sets
MERGE_BASE_IGNORE_MISSING_COMMITS in the flags word, and all
other callers pass 0.

Signed-off-by: Kristofer Karlsson <krka@spotify.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/merge-base.c
commit-reach.c
commit-reach.h