Exemplo n.º 1
0
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)),
	}
}
Exemplo n.º 2
0
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)),
	}
}
Exemplo n.º 3
0
func (entry *TreeEntry) Name() string {
	return C.GoString(C.git_tree_entry_name(entry.git_tree_entry))
}
Exemplo n.º 4
0
func (e *Entry) Filename() string {
	filename := C.git_tree_entry_name(e.git_tree_entry)
	return C.GoString(filename)
}