docs(git): add Ref information

This commit is contained in:
Jan De Dobbeleer 2022-07-14 19:53:00 +02:00 committed by Jan De Dobbeleer
parent f2ccee6df6
commit 0deccc956e

View file

@ -119,6 +119,7 @@ instead of the repo path.
- `.Working`: `GitStatus` - changes in the worktree (see below) - `.Working`: `GitStatus` - changes in the worktree (see below)
- `.Staging`: `GitStatus` - staged changes in the work tree (see below) - `.Staging`: `GitStatus` - staged changes in the work tree (see below)
- `.HEAD`: `string` - the current HEAD context (branch/rebase/merge/...) - `.HEAD`: `string` - the current HEAD context (branch/rebase/merge/...)
- `.Ref`: `string` - the current HEAD reference (branch/tag/...)
- `.Behind`: `int` - commits behind of upstream - `.Behind`: `int` - commits behind of upstream
- `.Ahead`: `int` - commits ahead of upstream - `.Ahead`: `int` - commits ahead of upstream
- `.BranchStatus`: `string` - the current branch context (ahead/behind string representation) - `.BranchStatus`: `string` - the current branch context (ahead/behind string representation)