Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wavetermdev/ssh_config
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: wavetermdev/ssh_config
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: sylvie/ignore-match-allowed
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 10 commits
  • 9 files changed
  • 4 contributors

Commits on Mar 6, 2024

  1. Add reload config (#2)

    * add function that can clear cached config files
    
    Once the first call to `Get()`, `GetStrict()`, `GetAll()`,
    or`GetAllStrict()` has been made, the contents of the config files will
    be cached for all future calls to any of those functions. This can be
    frustrating if the user wants to capture changes to the config file that
    were made externally. This
    change adds the `ClearCachedConfigs()` function to provide control over
    that.
    
    * change ClearCachedConfigs to ReloadConfigs
    
    Clearing cached data is somewhat vague and could be more confusing to
    users who are not familiar with this library. But Reloading the config
    data is very straightforward. For this reason, the ability to clear the
    cache has been replaced with the ability to reload.
    
    The reload simply clears the cache and then loads the contents again.
    
    Additionally, this contains a bug fix that ensure the loadConfigs
    pointer is set to a non-null value before it is used.
    
    * add tests for reloading ssh config files
    
    This adds 2 tests. The first checks that ssh config data is cached and
    does not update if the file changes afterward. The second checks that
    the `ReloadConfigs()` function will discard the cached data and load the
    current config file contents.
    oneirocosm authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    cba6b6a View commit details
    Browse the repository at this point in the history
  2. Update IdentityFile Defaults to Match Documentation (#4)

    Credit to @virtuald for the original implementation of this fix.
    
    * Add support for retrieving all IdentityFile directives via DefaultAll
    
    * fix: set IdentityFile defaults to match man page
    
    The existing default IdentityFile list was incomplete and out of order.
    This updates it to match the defaults listed here:
    https://man7.org/linux/man-pages/man5/ssh_config.5.html
    
    ---------
    
    Co-authored-by: Dustin Spicuzza <[email protected]>
    oneirocosm and virtuald authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    17e2087 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. Configuration menu
    Copy the full SHA
    e2d4055 View commit details
    Browse the repository at this point in the history
  2. cleanup

    iamFrancescoFerro committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    d5ad691 View commit details
    Browse the repository at this point in the history
  3. cleanup

    iamFrancescoFerro committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    5a03b50 View commit details
    Browse the repository at this point in the history
  4. cleanup

    iamFrancescoFerro committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    5a3b04b View commit details
    Browse the repository at this point in the history
  5. cleanup

    iamFrancescoFerro committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    961aa82 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

  1. Configuration menu
    Copy the full SHA
    d620a27 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    46cd937 View commit details
    Browse the repository at this point in the history
  3. fix: match directive bypass for GetAll

    The new ignoreMatchDirective flag needed to be added in one other place.
    oneirocosm committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    76fbf96 View commit details
    Browse the repository at this point in the history
Loading