Skip to content

Commit

Permalink
docs(config): mention branch components (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 authored Nov 27, 2023
1 parent f5e8fef commit b20b740
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,11 @@ require("gitlinker").setup({
})
```

> Here use the two branch components:
>
> - `lk.default_branch`(`_A.DEFAULT_BRANCH`): retrieved from `git rev-parse --abbrev-ref origin/HEAD`.
> - `lk.current_branch`(`_A.CURRENT_BRANCH`): retrieved from `git rev-parse --abbrev-ref HEAD`.
Then use it just like `blame`:

```vim
Expand Down

0 comments on commit b20b740

Please sign in to comment.