git-last-commit
Version:
Read details of the last commit including tags
28 lines (25 loc) • 541 B
TypeScript
export interface Commit {
shortHash: string;
hash: string;
subject: string;
sanitizedSubject: string;
body: string;
authoredOn: string;
committedOn: string;
author: {
name: string;
email: string;
},
committer: {
name: string;
email: string;
},
notes?: string;
branch: string;
tags: string[];
}
export interface Options {
dst: string;
}
type GetLastCommitCallback = (err: Error, commit: Commit) => void;
export const getLastCommit: (callback: GetLastCommitCallback, options?: Options) => void;