Lines Matching refs:paths
19 paths?: string[];
226 const paths = options.paths ?? ['.']; constant
256 ...paths,
308 async addFilesAsync(paths?: string[]): Promise<void> {
309 if (!paths || paths.length === 0) {
312 await this.runAsync(['add', '--', ...paths]);
318 async discardFilesAsync(paths?: string[]): Promise<void> {
319 if (!paths || paths.length === 0) {
322 await this.runAsync(['checkout', '--', ...paths]);
323 await this.runAsync(['clean', '-df', '--', ...paths]);
366 async hasUnstagedChangesAsync(paths: string[] = []): Promise<boolean> {
367 return !(await this.tryAsync(['diff', '--quiet', '--', ...paths]));
413 async listTreeAsync(ref: string, paths: string[]): Promise<GitListTree[]> {
414 const { stdout } = await this.runAsync(['ls-tree', '-l', ref, '--', ...paths]);