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

cascaded autoload defaults #34

Open
DanCardin opened this issue Apr 29, 2021 · 0 comments
Open

cascaded autoload defaults #34

DanCardin opened this issue Apr 29, 2021 · 0 comments

Comments

@DanCardin
Copy link
Owner

In particular, if i define some top-level alias push = git push origin master, i would ideally like to not have to sauce to get that, while i may not want project-specific values to autoload.

I think a decent first pass at this might be:

  • lack of autoload is always false
  • parent autoload=true values propagate downward for that level of specificity
  • child lack of an autoload setting means parent autoload=trues get loaded
  • child explicit autoload=false disables autoloading entirely

It is maybe somewhat weird that this means you get different behavior if you explicitly define your local preference (false) vs leaving it unset, which also resolves to false.

It might be better to simply have the autoload value propagate inversely, i.e.

  • the autoload value is taken from the level of specificity for the item being loaded, if specified.
  • if unspecified at that level, the local value (and therefore local/global default if unspecified) is chosen instead.
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

No branches or pull requests

1 participant