Code Study: GitHub Desktop / models / branch.ts
The file defines the data model for a branch as loaded from Git.
tags: GitHub Desktop - Electron
- name: string - The short name of the branch. E.g.,
|upstream: string||null - The remote-prefixed upstream name. E.g., |
- tip: Commit - The commit associated with this branch
- type: BranchType - The type of branch, e.g., local or remote.