8000 Add 'Repository.StateCleanup' helper. · epsitec-sa/libgit2sharp@f036553 · GitHub
[go: up one dir, main page]

Skip to content

Commit f036553

Browse files
committed
Add 'Repository.StateCleanup' helper.
1 parent 5c85673 commit f036553

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

LibGit2Sharp/Repository.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,6 +1756,14 @@ public RepositoryStatus RetrieveStatus(StatusOptions options)
17561756
return new RepositoryStatus(this, options);
17571757
}
17581758

1759+
/// <summary>
1760+
/// Cleanup the 'currently running' state.
1761+
/// </summary>
1762+
public void StateCleanup()
1763+
{
1764+
Proxy.git_repository_state_cleanup(handle);
1765+
}
1766+
17591767
internal void ReloadFromDisk()
17601768
{
17611769
Proxy.git_index_read(Index.Handle);

0 commit comments

Comments
 (0)
0