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 {...@@ -44,6 +44,7 @@ pub fn getHEAD(alloc: std.mem.Allocator, dir: std.fs.Dir) !CommitId {
44}44}
4545
46// TODO make this inspect .git/objects46// TODO make this inspect .git/objects
47// TODO make this return a Reader when we implement it ourselves
47// https://git-scm.com/book/en/v2/Git-Internals-Git-Objects48// https://git-scm.com/book/en/v2/Git-Internals-Git-Objects
48// https://git-scm.com/book/en/v2/Git-Internals-Packfiles49// https://git-scm.com/book/en/v2/Git-Internals-Packfiles
49pub fn getObject(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !string {50pub 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 {...@@ -57,6 +58,7 @@ pub fn getObject(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !string {
57}58}
5859
59// TODO make this inspect .git/objects manually60// TODO make this inspect .git/objects manually
61// TODO make this return a Reader when we implement it ourselves
60// https://git-scm.com/book/en/v2/Git-Internals-Git-Objects62// https://git-scm.com/book/en/v2/Git-Internals-Git-Objects
61// https://git-scm.com/book/en/v2/Git-Internals-Packfiles63// https://git-scm.com/book/en/v2/Git-Internals-Packfiles
62pub fn getObjectSize(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !u64 {64pub 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 {...@@ -69,6 +71,7 @@ pub fn getObjectSize(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !u64 {
69}71}
7072
71// TODO make this inspect .git/objects manually73// TODO make this inspect .git/objects manually
74// TODO make this return a Reader when we implement it ourselves
72// 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 paths75// 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
73// https://git-scm.com/book/en/v2/Git-Internals-Git-Objects76// https://git-scm.com/book/en/v2/Git-Internals-Git-Objects
74// https://git-scm.com/book/en/v2/Git-Internals-Packfiles77// https://git-scm.com/book/en/v2/Git-Internals-Packfiles