kibana/x-pack/legacy/plugins/code/model/commit.ts
Yulong bb92b8b8b5
[Code] replace nodegit with native git (#45491) (#47920)
* [Code]  use native git to iterate git files
* [Code] use native git to clone/update repository
* [Code] git history using native git
* [Code] use native git to read file tree and file content
* [Code] fix the 'bad file' warning from status api
* [Code] use native git to handle worktree
* [Code] use native git to resolve references
* [Code] use native git to handle blame / diff
* [Code] patch git binaries in kibana build script
* [Code] migrate unit tests to use native git
2019-10-11 12:50:06 +08:00

31 lines
694 B
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
export interface CommitInfo {
updated: Date;
message: string;
committer: string;
committerEmail?: string;
author: string;
authorEmail?: string;
id: string;
parents: string[];
treeId: string;
}
export interface ReferenceInfo {
name: string;
reference: string;
commit?: CommitInfo;
type: ReferenceType;
}
export enum ReferenceType {
BRANCH = 'BRANCH',
TAG = 'TAG',
REMOTE_BRANCH = 'REMOTE_BRANCH',
OTHER = 'OTHER',
}