Documentation
¶
Overview ¶
Package manifest manipulates Manifest files as described at https://gerrit.googlesource.com/git-repo/+/master/docs/manifest-format.txt.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Default ¶
type Default struct {
Revision string `xml:"revision,attr"`
Remote string `xml:"remote,attr"`
DestBranch string `xml:"dest-branch,attr"`
SyncJ string `xml:"sync-j,attr"`
SyncC string `xml:"sync-c,attr"`
SyncS string `xml:"sync-s,attr"`
}
Default holds default Project settings.
type Manifest ¶
type Manifest struct {
Default Default `xml:"default"`
Remote []Remote `xml:"remote"`
Project []Project `xml:"project"`
}
Manifest holds the entire manifest, describing a set of git projects to be stitched together
func (*Manifest) Filter ¶
func (mf *Manifest) Filter()
Filter removes all notdefault projects from a manifest.
func (*Manifest) MarshalXML ¶
MarshalXML serializes the receiver to XML.
func (*Manifest) ProjectRevision ¶
type Project ¶
type Project struct {
Path *string `xml:"path,attr"`
Name string `xml:"name,attr"`
Remote string `xml:"remote,attr,omitempty"`
Copyfile []Copyfile `xml:"copyfile,omitempty"`
Linkfile []Linkfile `xml:"linkfile,omitempty"`
GroupsString string `xml:"groups,attr,omitempty"`
Groups map[string]bool `xml:"-"`
Revision string `xml:"revision,attr,omitempty"`
DestBranch string `xml:"dest-branch,attr,omitempty"`
SyncJ string `xml:"sync-j,attr,omitempty"`
SyncC string `xml:"sync-c,attr,omitempty"`
SyncS string `xml:"sync-s,attr,omitempty"`
Upstream string `xml:"upstream,attr,omitempty"`
CloneDepth string `xml:"clone-depth,attr,omitempty"`
ForcePath string `xml:"force-path,attr,omitempty"`
// This is not part of the Manifest spec.
CloneURL string `xml:"clone-url,attr,omitempty"`
}
Project represents a single git repository that should be stitched into the checkout.
Click to show internal directories.
Click to hide internal directories.