mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
SCM - Add short state badge for history items (#198126)
* Git - Extract parsing of git diff short stat * Add shortStat badge for commits * Git - specify diff-merges for merge commits * Add tests
This commit is contained in:
8
extensions/git/src/api/git.d.ts
vendored
8
extensions/git/src/api/git.d.ts
vendored
@@ -44,6 +44,12 @@ export interface Branch extends Ref {
|
||||
readonly behind?: number;
|
||||
}
|
||||
|
||||
export interface CommitShortStat {
|
||||
readonly files: number;
|
||||
readonly insertions: number;
|
||||
readonly deletions: number;
|
||||
}
|
||||
|
||||
export interface Commit {
|
||||
readonly hash: string;
|
||||
readonly message: string;
|
||||
@@ -52,6 +58,7 @@ export interface Commit {
|
||||
readonly authorName?: string;
|
||||
readonly authorEmail?: string;
|
||||
readonly commitDate?: Date;
|
||||
readonly shortStat?: CommitShortStat;
|
||||
}
|
||||
|
||||
export interface Submodule {
|
||||
@@ -134,6 +141,7 @@ export interface LogOptions {
|
||||
readonly range?: string;
|
||||
readonly reverse?: boolean;
|
||||
readonly sortByAuthorDate?: boolean;
|
||||
readonly shortStats?: boolean;
|
||||
}
|
||||
|
||||
export interface CommitOptions {
|
||||
|
||||
Reference in New Issue
Block a user