git2go icon indicating copy to clipboard operation
git2go copied to clipboard

Duplicate ignore rule methods

Open josharian opened this issue 7 years ago • 0 comments

Repository methods include:

func (r *Repository) AddGitIgnoreRules(rules string) error
func (v *Repository) AddIgnoreRule(rules string) error
func (r *Repository) ClearGitIgnoreRules() error
func (v *Repository) ClearInternalIgnoreRules() error

The implementation is almost identical.

I suggest marking one of each of the pairs as deprecated, and having it just call through to its sibling.

josharian avatar Feb 22 '18 23:02 josharian