mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* [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
31 lines
694 B
TypeScript
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',
|
|
}
|