From 3230ac8d0206bde1d645850fe611989935ef6f6c Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 3 May 2023 16:29:11 -0700 Subject: [PATCH] add more TODOs --- git.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git.zig b/git.zig index 6d648a0e1501840c8def662309a8ea112250da34..090f69e8fe9574c901c3bd1ba5fe83abe39f7a69 100644 --- a/git.zig +++ b/git.zig @@ -44,6 +44,7 @@ pub fn getHEAD(alloc: std.mem.Allocator, dir: std.fs.Dir) !CommitId { } // TODO make this inspect .git/objects +// TODO make this return a Reader when we implement it ourselves // https://git-scm.com/book/en/v2/Git-Internals-Git-Objects // https://git-scm.com/book/en/v2/Git-Internals-Packfiles pub fn getObject(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !string { @@ -57,6 +58,7 @@ pub fn getObject(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !string { } // TODO make this inspect .git/objects manually +// TODO make this return a Reader when we implement it ourselves // https://git-scm.com/book/en/v2/Git-Internals-Git-Objects // https://git-scm.com/book/en/v2/Git-Internals-Packfiles pub fn getObjectSize(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !u64 { @@ -69,6 +71,7 @@ pub fn getObjectSize(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !u64 { } // TODO make this inspect .git/objects manually +// TODO make this return a Reader when we implement it ourselves // TODO make a version of this that accepts an array of sub_paths and searches all of them at once, so as to not lose spot in history when searching for many old paths // https://git-scm.com/book/en/v2/Git-Internals-Git-Objects // https://git-scm.com/book/en/v2/Git-Internals-Packfiles -- 2.54.0