Is it possible to add parts of a file to Git index using libgit2?

落爺英雄遲暮 提交于 2019-12-23 01:45:19

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!