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

feat: plugin-add command can take git branch name. #1204

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

Commits on Apr 15, 2022

  1. feat: plugin-add command can take git branch name.

    Previously it was only possible to clone plugin repos on their default branch.
    This pull-request allows the `plugin-add` command to take an aditional
    argument for specifying a git-ref used for `git clone`.
    
    Note: The `plugin-update` command already was able to take a `git-ref`,
    but this feature eliminates the need of doing `plugin-add` and immediatly
    `plugin-update` just for setting the git-ref to use.
    
    Sometimes it's convenient to specify another plugin-repo branch or release-tag,
    instead of using the repos' default branch.
    
    For example, if a plugin becomes unstable on its default branch because
    a bug was introduced, or if the fix is only available at an experimental
    branch, people might want to try those changes.
    
    Also, some advanced plugins, like
    [asdf-direnv](https://github.com/asdf-community/asdf-direnv) can have
    tagged releases or `develop` branches that can potentially be
    more *experimental* but more feature-forward than the `master` branch.
    
    Added a test that exercises clonning using an specific branch name.
    
    Documented on help.txt and had keep all other commands help aligned.
    
    Closes asdf-vm#1201
    vic committed Apr 15, 2022
    Configuration menu
    Copy the full SHA
    e85588a View commit details
    Browse the repository at this point in the history