Address issue #108 #109
Loading…
Reference in New Issue
No description provided.
Delete Branch "git_status"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This should address most of #108. I haven't added tests yet, and it doesn't cover the entire status API, but I should be able to add those soon.
I'd rather avoid having the foreach functions wrapped. They introduce more complexity and they don't actually do anything that you can't
ByIndex
. If you want the convenience of an automatically-selected path, this can be done in Go much more safely.Did you want to add more tests? Otherwise I think I'll just merge it. The functionality itself is tested in libgit2 itself, so we should be able to get away with some testing that just makes sure the data conversion is working.
I think the existing tests cover all the basic functionality. The
StatusList
parts seem to be fine, and the tests should handle data conversion, since they pass in options and check the resulting entries. Thanks!