git - Is there a way to commit part of modified files (all files are staged) by using libgit2sharp? -


is there way commit part of modified files (all files staged) using libgit2sharp?

there no commit method in repository takes path parameter.

is there way commit part of modified files (all files staged) using libgit2sharp?

currently, there's no way perform partial staging/unstaging in libgit2sharp. i'd suggest subscribe issue 195 in order notified when available.

there no commit method in repository takes path parameter.

actually, action of committing consists of taking snapshot of index , creating durable commit git object in object database. such, commit api doesn't accept paths.

in order create commit file (or list of files) on file system, you'd first have add them index repo.index.stage(), invoke repo.commit() method.


Comments