Git - improve heuristics for determining branch base (#193986)

* Add getBranchBaseFromReflog

* Read/store branch merge base in the git config

* Add getBranchBase() extension api
This commit is contained in:
Ladislau Szomoru
2023-09-25 16:12:10 +02:00
committed by GitHub
parent 70a9d8f4ea
commit 8e80e950a4
4 changed files with 70 additions and 2 deletions

View File

@@ -219,6 +219,7 @@ export interface Repository {
deleteBranch(name: string, force?: boolean): Promise<void>;
getBranch(name: string): Promise<Branch>;
getBranches(query: BranchQuery, cancellationToken?: CancellationToken): Promise<Ref[]>;
getBranchBase(name: string): Promise<Branch | undefined>;
setBranchUpstream(name: string, upstream: string): Promise<void>;
getRefs(query: RefQuery, cancellationToken?: CancellationToken): Promise<Ref[]>;