GitRoot
craft your forge, build your project, grow your community freely
1// SPDX-FileCopyrightText: 2025 Romain Maneschi <romain@gitroot.dev>
2//
3// SPDX-License-Identifier: MIT
4
5export const fileActionTypeAdd = "add";
6export const fileActionTypeMod = "mod";
7export const fileActionTypeDel = "del";
8
9@json
10export class File {
11 constructor(
12 public path: string,
13 public fileHash: string,
14 public oldPath: string, //only if action == FileActionTypeMod
15 public oldFileHash: string, //only if action == FileActionTypeMod
16 public action: string
17 ) {}
18}