authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-05-03 16:29:11 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-05-03 16:29:37 -07:00
log3230ac8d0206bde1d645850fe611989935ef6f6c
tree9a726a0bb621e28f4b87581b2775c6103a1aad71
parent63c6242d86a976e268580fd24a2a8b7455fe1512

add more TODOs


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

git.zig+3
......@@ -44,6 +44,7 @@ pub fn getHEAD(alloc: std.mem.Allocator, dir: std.fs.Dir) !CommitId {
4444}
4545
4646// TODO make this inspect .git/objects
47// TODO make this return a Reader when we implement it ourselves
4748// https://git-scm.com/book/en/v2/Git-Internals-Git-Objects
4849// https://git-scm.com/book/en/v2/Git-Internals-Packfiles
4950pub 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 {
5758}
5859
5960// TODO make this inspect .git/objects manually
61// TODO make this return a Reader when we implement it ourselves
6062// https://git-scm.com/book/en/v2/Git-Internals-Git-Objects
6163// https://git-scm.com/book/en/v2/Git-Internals-Packfiles
6264pub 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 {
6971}
7072
7173// TODO make this inspect .git/objects manually
74// TODO make this return a Reader when we implement it ourselves
7275// 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
7376// https://git-scm.com/book/en/v2/Git-Internals-Git-Objects
7477// https://git-scm.com/book/en/v2/Git-Internals-Packfiles