diff options
Diffstat (limited to 'index.go')
| -rw-r--r-- | index.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -528,7 +528,7 @@ type IndexConflict struct { Their *IndexEntry } -func (v *Index) GetConflict(path string) (IndexConflict, error) { +func (v *Index) Conflict(path string) (IndexConflict, error) { var cancestor *C.git_index_entry var cour *C.git_index_entry @@ -553,6 +553,11 @@ func (v *Index) GetConflict(path string) (IndexConflict, error) { return ret, nil } +// deprecated: You should use `Index.Conflict()` instead. +func (v *Index) GetConflict(path string) (IndexConflict, error) { + return v.Conflict(path) +} + func (v *Index) RemoveConflict(path string) error { cpath := C.CString(path) |
