/
defs.go
46 lines (40 loc) · 907 Bytes
/
defs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// godefs -g git defs.c
// MACHINE GENERATED - DO NOT EDIT.
package git
// Constants
const (
GIT_OBJ_ANY = -0x2
GIT_OBJ_BAD = -0x1
GIT_OBJ__EXT1 = 0
GIT_OBJ_BLOB = 0x3
GIT_OBJ_COMMIT = 0x1
GIT_OBJ_OFS_DELTA = 0x6
GIT_OBJ_REF_DELTA = 0x7
GIT_OBJ_TAG = 0x4
GIT_OBJ_TREE = 0x2
GIT_OBJ__EXT2 = 0x5
GIT_REF_SYMBOLIC = 0x2
GIT_SUCCESS = 0
GIT_ENOTOID = -0x2
)
// Types
type GitTime struct {
Time int64
Offset int32
Pad_godefs_0 [4]byte
}
type IndexEntry struct {
Ctime [16]byte /* git_index_time */
Mtime [16]byte /* git_index_time */
Dev uint32
Ino uint32
Mode uint32
Uid uint32
Gid uint32
Pad_godefs_0 [4]byte
File_size int64
Oid [20]byte /* git_oid */
Flags uint16
Flags_extended uint16
Path *int8
}