Skip to content

Commit

Permalink
Merge pull request #172 from dotindustries/feat/git_cherry
Browse files Browse the repository at this point in the history
feat: git cherry
  • Loading branch information
nadilas authored Apr 6, 2024
2 parents 82800df + 58d2b21 commit d0e5a4f
Show file tree
Hide file tree
Showing 6 changed files with 624 additions and 38 deletions.
2 changes: 2 additions & 0 deletions packages/ogre/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"scripts": {
"build": "tsc -p tsconfig.build.json",
"test": "nyc --reporter=lcov tap --coverage-report=none --allow-incomplete-coverage",
"test:cov": "tap",
"test:covhtml": "tap --coverage-report=lcov",
"test:node": "node --import tsx --test src/**/*.test.ts",
"coverage:html": "nyc report --reporter=html"
},
Expand Down
18 changes: 9 additions & 9 deletions packages/ogre/src/commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { digest } from "./hash";
import { Operation } from "fast-json-patch";

export interface Commit {
/*The hash of the commit. Is an sha256 of:
- tree object reference (changes?)
- parent object reference (parent hash)
- author
- author commit timestamp with timezone
- commit message
*/
/*The hash of the commit. Is a sha256 of:
- tree object reference (changes?)
- parent object reference (parent hash)
- author
- author commit timestamp with timezone
- commit message
*/
hash: string;
tree: string;

Expand All @@ -19,7 +19,7 @@ export interface Commit {
parent: string | undefined;

// The diff of this commit from the parent
changes: Operation[];
changes: Array<Operation>;

// Commit timestamp with timezone
timestamp: Date;
Expand All @@ -29,7 +29,7 @@ export interface CommitHashContent {
message: string;
author: string;
parentRef: string | undefined;
changes: Operation[];
changes: Array<Operation>;
timestamp: Date;
}

Expand Down
Loading

0 comments on commit d0e5a4f

Please sign in to comment.