MCPcopy Create free account
hub / github.com/go-git/go-git / Branch

Struct Branch

config/branch.go:19–38  ·  view source on GitHub ↗

Branch contains information on the local branches and which remote to track

Source from the content-addressed store, hash-verified

17// Branch contains information on the
18// local branches and which remote to track
19type Branch struct {
20 // Name of branch
21 Name string
22 // Remote name of remote to track
23 Remote string
24 // Merge is the local refspec for the branch
25 Merge plumbing.ReferenceName
26 // Rebase instead of merge when pulling. Valid values are
27 // "true" and "interactive". "false" is undocumented and
28 // typically represented by the non-existence of this field
29 Rebase string
30 // Description explains what the branch is for.
31 // Multi-line explanations may be used.
32 //
33 // Original git command to edit:
34 // git branch --edit-description
35 Description string
36
37 raw *format.Subsection
38}
39
40// Validate validates fields of branch
41func (b *Branch) Validate() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected