Add index.Clear() to clear the index object #463

Merged
Nivl merged 1 commits from patch-1 into master 2019-01-03 18:43:48 -06:00
Nivl commented 2018-10-25 17:16:54 -05:00 (Migrated from github.com)

Simple PR that adds index.Clear(), which does nothing more than calling git_index_clear.

Simple PR that adds `index.Clear()`, which does nothing more than calling [`git_index_clear`](https://github.com/libgit2/libgit2/blob/bea65980c7a42e34edfafbdc40b199ba7b2a564e/include/git2/index.h#L404).
lhchavez commented 2018-12-27 22:51:09 -06:00 (Migrated from github.com)

would it be possible to add a test for this?

would it be possible to add a test for this?
carlosmn commented 2019-01-03 18:43:44 -06:00 (Migrated from github.com)

It's just wrapping the call the most straightforward way so it's fine without a test. Thanks.

It's just wrapping the call the most straightforward way so it's fine without a test. Thanks.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#463
No description provided.