mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
Git - add the capability to filter git log based on the author (#207169)
This commit is contained in:
parent
a9ab31da9c
commit
967170aa0a
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 reverse?: boolean;
|
||||||
readonly sortByAuthorDate?: boolean;
|
readonly sortByAuthorDate?: boolean;
|
||||||
readonly shortStats?: boolean;
|
readonly shortStats?: boolean;
|
||||||
|
readonly author?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CommitOptions {
|
export interface CommitOptions {
|
||||||
|
|
|
@ -1161,6 +1161,10 @@ export class Repository {
|
||||||
args.push(`-n${options?.maxEntries ?? 32}`);
|
args.push(`-n${options?.maxEntries ?? 32}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options?.author) {
|
||||||
|
args.push(`--author="${options.author}"`);
|
||||||
|
}
|
||||||
|
|
||||||
if (options?.path) {
|
if (options?.path) {
|
||||||
args.push('--', options.path);
|
args.push('--', options.path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue