UCLALibrary / packer-samvera

A build of Samvera/Hyrax using Packer and the 'ansible-samvera' roles
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

Copy host gitconfig and global gitignore to guest VM #34

Closed ksclarke closed 6 years ago

ksclarke commented 6 years ago

At least one dev uses this and finds it useful. Add it?

https://github.com/geelen/git-smart

It has some recommended aliases that would need to be configured too (I think).

ksclarke commented 6 years ago

Is this gem maintained? https://github.com/geelen/git-smart/issues looks like maybe not?

ksclarke commented 6 years ago

Perhaps the better solution is do this through gitconfig. Here is Hardy's: https://github.com/hardyoyo/dotfiles/blob/hardyoyo-preferences/git/.gitconfig#L25

Other things to steal from it?

ksclarke commented 6 years ago

Plan is to copy the gitconfig from the host machine to the guest. This is assuming that if someone has customized their gitconfig that they'll find those customization on the guest useful too (and it will have their username and email preconfigured). We should definitely document this assumption though so it's clear and doesn't cause any additional concerns (e.g., from one dev to another: just run git lolz and you'll see customized git log output -- where lolz is some specific git alias).

ksclarke commented 6 years ago

Fixed, just waiting on review.

ksclarke commented 6 years ago

Reopening because this is still waiting on a review: PR #36