Branch contains information on the local branches and which remote to track
| 17 | // Branch contains information on the |
| 18 | // local branches and which remote to track |
| 19 | type 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 |
| 41 | func (b *Branch) Validate() error { |
nothing calls this directly
no outgoing calls
no test coverage detected