trevorhauter / gitportal.nvim

Easily generate or ingest shareable permalinks to get to the files you want. Fast.
MIT License
5 stars 0 forks source link

Improve link generation behavior. #37

Closed trevorhauter closed 1 month ago

trevorhauter commented 1 month ago

Summary of changes

Now when we retrieve the branch/commit name, we also know which is which. i.e. if it's a branch or commit. It is very difficult to check if a commit is available on the remote repo, so we don't bother, but, if it is a branch, we will at least check that it exists in the remote before generating a link and show an error message to the user if not