Decoding a Git Index File Using C #

Is there any documentation about the internal structure of the Git index file? From different books I know its binary and contains SHA phased files, I know about the Git plumbing commands that help to identify the contents of the index ...

But what about a read index using C # for example?

I know that there are several implementations of this function, so you can study the code:

  • In git itself;
  • In libgit2, written in C;
  • GitSharp ported to C # from Java.

And all these options are a bit complicated, because you need to crack another code. I would rather develop from scratch using an explanation of the data format. If possible.

Very grateful for your help!

+4
source share
1 answer

Take a look at Documentation/technical/index-format.txt in the git.git repository:

http://git.kernel.org/?p=git/git.git;a=blob;f=Documentation/technical/index-format.txt;hb=HEAD

+9
source

Source: https://habr.com/ru/post/1384459/


All Articles