mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-05-18 15:25:43 +02:00
35 lines
591 B
TypeScript
35 lines
591 B
TypeScript
import { Event } from 'vscode';
|
|
|
|
export type GitAPIState = 'uninitialized' | 'initialized';
|
|
|
|
export interface GitRepository {
|
|
state: GitRepositoryState;
|
|
rootUri: {
|
|
fsPath: string;
|
|
path: string;
|
|
};
|
|
repository: {
|
|
getBranches: () => Promise<GitBranch[]>;
|
|
};
|
|
}
|
|
|
|
export interface GitRepositoryState {
|
|
HEAD?: GitBranch;
|
|
onDidChange: Event<void>;
|
|
}
|
|
|
|
export interface GitBranch {
|
|
type: number;
|
|
name?: string;
|
|
upstream: Upstream;
|
|
commit: string;
|
|
ahead: number;
|
|
behind: number;
|
|
}
|
|
|
|
export interface Upstream {
|
|
name: string;
|
|
remote: string;
|
|
commit: string;
|
|
}
|