authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-04-28 18:39:02 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-04-28 18:39:02 -07:00
logca1b8dcc2891fc1b344e8d602cc593694a1e5008
treeaaf962af3485dec83adc74985433e0f7adc6d4d1
parentab64fd7cb1a8e94e038a90578f933d095599b36f

add 'symlink' mode type


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

git.zig+2-2
...@@ -170,7 +170,7 @@ pub const Tree = struct {...@@ -170,7 +170,7 @@ pub const Tree = struct {
170 file = 100,170 file = 100,
171 directory = 40,171 directory = 40,
172 submodule = 160,172 submodule = 160,
173 _,173 symlink = 120,
174174
175 pub fn format(self: Type, comptime fmt: string, options: std.fmt.FormatOptions, writer: anytype) !void {175 pub fn format(self: Type, comptime fmt: string, options: std.fmt.FormatOptions, writer: anytype) !void {
176 _ = fmt;176 _ = fmt;
...@@ -180,7 +180,7 @@ pub const Tree = struct {...@@ -180,7 +180,7 @@ pub const Tree = struct {
180 .file => '-',180 .file => '-',
181 .directory => 'd',181 .directory => 'd',
182 .submodule => 'm',182 .submodule => 'm',
183 _ => '?',183 .symlink => '-',
184 });184 });
185 }185 }
186 };186 };