Add ReferenceNormalizeName #681
Loading…
Reference in New Issue
No description provided.
Delete Branch "git-reference-normalize-name"
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?
Not sure about the buffer allocation for passing to
git_reference_normalize_name
: Is usingmalloc
correct? Is the size correct, or should it be a loop with retries with some increasing buffer size (But the function doesn't seem to tell you how big it should be...)?Go 1.9?! Really... 🤷♂️
nice! just a few small requests.
We can probably take this out since Go doesn't work that way.
since
C.GIT_REFNAME_MAX
isn't exported, could that be explicitly declared?Go prefers to print the want and got when failing tests:
Same in L241.
Thank you for the PR. I have a trivial styling comment.
It is good to prefix unexported globals with
_
:Since this is not gonna change, you could have it as a const.
or just have it as: