tangled
alpha
login
or
join now
runxiyu.tngl.sh
/
furgit
6
fork
atom
Fast implementation of Git in pure Go
6
fork
atom
overview
issues
pulls
pipelines
Add a basic change-id field
runxiyu.tngl.sh
3 months ago
2269f268
f24da229
+5
1 changed file
expand all
collapse all
unified
split
obj_commit.go
+5
obj_commit.go
···
20
20
Committer Ident
21
21
// Message represents the commit message.
22
22
Message []byte
23
23
+
// ChangeID represents the change-id header used by
24
24
+
// Gerrit and Jujutsu.
25
25
+
ChangeID string
23
26
// ExtraHeaders holds any extra headers present in the commit.
24
27
ExtraHeaders []ExtraHeader
25
28
}
···
71
74
return nil, fmt.Errorf("furgit: commit: parent: %w", err)
72
75
}
73
76
c.Parents = append(c.Parents, parent)
77
77
+
case bytes.HasPrefix(line, []byte("change-id ")):
78
78
+
c.ChangeID = string(line)
74
79
case bytes.HasPrefix(line, []byte("author ")):
75
80
idt, err := parseIdent(line[7:])
76
81
if err != nil {