Closed bittner closed 6 years ago
@edestecd If that's roughly okay for you I'd prepare another PR.
Yea, managing git config files seams like a nice feature to add.
Could gitconfig or gitignore be a hash or path to a template. I'm not sure what defaults would be sensible for everyone. I assume many may want different settings there.
Difficult to say. What would you suggest in detail?
I would start just with files, and later extend the feature set to a dictionary that allows to set details of those files (technically by help of a template). -- Update: That seems complicated. Your idea is much better: Allow gitconfig
and gitignore
to be file
or Puppet URL values.
Yay! :tada: -- Thanks for your awesome support!
Would it make sense to also provide the option to install system-global and user-global Git configuration, including a generic set of patterns in a global .gitignore file?
This would install:
/etc/gitconfig
)/etc/skel/.config/git/config
)/etc/skel/.config/git/ignore
)Examples
FILE:
/etc/gitconfig
FILE:
/etc/skel/.config/git/config
FILE:
/etc/skel/.config/git/ignore
References
git config --list --show-origin
... shows where which config setting comes fromman git-config
(FILES section)