Unused parameter in OpenOndisk(parent *Config, path string) #256
Labels
No Label
bug
duplicate
enhancement
invalid
question
up for grabs
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: jcarr/git2go#256
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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 is very minor and low priority, but something I noticed as I was working on a personal project.
It seems as though
parent
has no bearing on the result of the function. Am I misinterpreting its intent or usage, or is this just fodder for code cleanup?https://github.com/libgit2/git2go/blob/master/config.go#L329
It's quite possible this was a copy-paste error from
OpenLevel()
or a similar function. There is no parent here, since it's creating a new configuration object.I would like to work on this. But, I am bit confused.
The issue refers OpenOndisk which now at https://github.com/libgit2/git2go/blob/master/config.go#L346 rather than https://github.com/libgit2/git2go/blob/master/config.go#L329 where we have OpenLevel.
I will submit appropriate patch assuming that we want to clean-up OpenOndisk.
Fixed via #469