mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
Git - add the capability to filter git log based on the author (#207169)
This commit is contained in:
1
extensions/git/src/api/git.d.ts
vendored
1
extensions/git/src/api/git.d.ts
vendored
@@ -143,6 +143,7 @@ export interface LogOptions {
|
||||
readonly reverse?: boolean;
|
||||
readonly sortByAuthorDate?: boolean;
|
||||
readonly shortStats?: boolean;
|
||||
readonly author?: string;
|
||||
}
|
||||
|
||||
export interface CommitOptions {
|
||||
|
||||
@@ -1161,6 +1161,10 @@ export class Repository {
|
||||
args.push(`-n${options?.maxEntries ?? 32}`);
|
||||
}
|
||||
|
||||
if (options?.author) {
|
||||
args.push(`--author="${options.author}"`);
|
||||
}
|
||||
|
||||
if (options?.path) {
|
||||
args.push('--', options.path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user