Filemode mismatched type #121
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#121
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?
While trying to use @carlosmn's go.gitfs I ran into the following error:
It seems this problem was introduced in change
9bec36a0b0
The following patch fixes it, but I'm not sure if this is how you want to do it: https://gist.github.com/ry/21587c5d66e20ab0d123
If that commit changes how the
Filemode*
constants work, then it seems that const blocks don't quite work like I remember (or thought I did). From what I remember, only the first entry in a const block needs the type and the rest would get the same type (which why the code is formatted this way).But looking into this, it looks like that's only true if we don't assign a value to it. So I guess most or all of our const blocks are wrong and that this only used to work by chance.
I do think we should use the
Filemode
type inTreeEntry
andIndexEntry
since it represent those values which Git recognises for files.