jagged icon indicating copy to clipboard operation
jagged copied to clipboard

Missing update-index and write-tree alternatives

Open moatazelmasry2 opened this issue 11 years ago • 3 comments

Hello,

So far I managed to find the read functions in jagged, to read commits, tree entries, etc.., but almost no write functions (update-index, create a tree, create a new commit, etc..) Am I missing these, or they are not implemented?

moatazelmasry2 avatar Jun 24 '14 21:06 moatazelmasry2

I'm afraid that they are not yet implemented.

ethomson avatar Jun 24 '14 21:06 ethomson

I'd like to take a try at implementing the index

moatazelmasry2 avatar Jun 25 '14 08:06 moatazelmasry2

Great!

My inclination is to keep jagged's API similar to the LibGit2Sharp API. (Though obviously not an exact duplicate, since there are various things one can do in C# that don't exist in Java and vice-versa.) I think that it's beneficial to the libgit2 community as a whole to have bindings that similar when it makes sense to be.

So if you wouldn't mind looking at the Index class over there, for example, I think that it would make a lot of sense to use that as a guide towards our implementation.

Very exciting! :+1:

ethomson avatar Jun 25 '14 13:06 ethomson