ethomson / jagged

java bindings to libgit2
MIT License
112 stars 28 forks source link

Missing update-index and write-tree alternatives #23

Open moatazelmasry2 opened 10 years ago

moatazelmasry2 commented 10 years ago

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?

ethomson commented 10 years ago

I'm afraid that they are not yet implemented.

moatazelmasry2 commented 10 years ago

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

ethomson commented 10 years ago

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: