func newTreeEntry(entry *C.git_tree_entry) *TreeEntry { return &TreeEntry{ C.GoString(C.git_tree_entry_name(entry)), newOidFromC(C.git_tree_entry_id(entry)), int(C.git_tree_entry_type(entry)), } }
func newTreeEntry(entry *C.git_tree_entry) *TreeEntry { return &TreeEntry{ C.GoString(C.git_tree_entry_name(entry)), newOidFromC(C.git_tree_entry_id(entry)), ObjectType(C.git_tree_entry_type(entry)), Filemode(C.git_tree_entry_filemode(entry)), } }
func (entry *TreeEntry) Name() string { return C.GoString(C.git_tree_entry_name(entry.git_tree_entry)) }
func (e *Entry) Filename() string { filename := C.git_tree_entry_name(e.git_tree_entry) return C.GoString(filename) }