git: allow querying whether files are gitignore (#212982)

* git: allow querying whether files are gitignore

This exposes `checkIgnore`, which I want to use in copilot to determine
which files I should go into when checking references.

* rename method
This commit is contained in:
Connor Peet
2024-05-23 12:28:04 -07:00
committed by GitHub
parent 204521a0d0
commit 6629c4e0a9
3 changed files with 18 additions and 12 deletions

View File

@@ -235,6 +235,8 @@ export interface Repository {
getBranchBase(name: string): Promise<Branch | undefined>;
setBranchUpstream(name: string, upstream: string): Promise<void>;
checkIgnore(paths: string[]): Promise<Set<string>>;
getRefs(query: RefQuery, cancellationToken?: CancellationToken): Promise<Ref[]>;
getMergeBase(ref1: string, ref2: string): Promise<string | undefined>;