Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: actually allow overriding remotes #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kylo252
Copy link

@kylo252 kylo252 commented Jun 28, 2022

Description

ability to override the current branch's remote, which is useful for getting permalinks that use "origin", and not the temporary fork.

How to test

compare the results of these two functions before and after

require('gitlinker').get_buf_range_url('n', {remote = "origin"})
require('gitlinker').get_buf_range_url('n', {remote = "fork"})

ability to override the current branch's remote, which is useful for
getting permalinks that use "origin", and not the temporary fork.

```lua
require('gitlinker').get_buf_range_url('n', {remote = "origin"})
require('gitlinker').get_buf_range_url('n', {remote = "fork"})
```
stevanmilic pushed a commit to stevanmilic/gitlinker.nvim that referenced this pull request Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant