authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-05-04 14:00:48 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-05-04 14:00:48 -07:00
log259015937048a1ff820ded783ab65376b8f79f4b
tree3d7e1401544e3aaa10e3e4d804e378c17c221104
parent84501a5ed933e48a1f8255df1363e731cdf5c156

add Object.Type.none, this is found when a commit deletes a file


1 files changed, 2 insertions(+), 0 deletions(-)

git.zig+2
...@@ -250,6 +250,7 @@ pub const Tree = struct {...@@ -250,6 +250,7 @@ pub const Tree = struct {
250 directory = 40,250 directory = 40,
251 submodule = 160,251 submodule = 160,
252 symlink = 120,252 symlink = 120,
253 none = 0,
253254
254 pub fn format(self: Type, comptime fmt: string, options: std.fmt.FormatOptions, writer: anytype) !void {255 pub fn format(self: Type, comptime fmt: string, options: std.fmt.FormatOptions, writer: anytype) !void {
255 _ = fmt;256 _ = fmt;
...@@ -260,6 +261,7 @@ pub const Tree = struct {...@@ -260,6 +261,7 @@ pub const Tree = struct {
260 .directory => 'd',261 .directory => 'd',
261 .submodule => 'm',262 .submodule => 'm',
262 .symlink => '-',263 .symlink => '-',
264 .none => '-',
263 });265 });
264 }266 }
265 };267 };