def is_rebase_in_progress(): return git_meld_index.try_cmd(env, ["test", "-d", ".git/rebase-apply"])
def is_merge_in_progress(): return git_meld_index.try_cmd(env, ["test", "-f", ".git/MERGE_BASE"])