问题
I am using libgit2, actually libgit2sharp, is there a way to add parts of a file similar to what add -p
in CLI?
I don't find anything from the documentation: http://libgit2.github.com/libgit2/#HEAD/group/index
回答1:
This is neither implemented (yet) in libgit2
, nor in LibGit2Sharp
.
In order to make this happen sooner rather than later, I'd suggest you to open a feature request in the libgit2
tracker.
来源:https://stackoverflow.com/questions/9597663/is-it-possible-to-add-parts-of-a-file-to-git-index-using-libgit2