The –keep-scm-meta argument is useful during local development of collections as it permits bugfixes to be made to collection, and pushed easily.
The collection git feature was implemented in #61680, but persisting the
.git folder should be optional IMO, just as it is for roles currently.
.git metadata is a crucial part of my current ansible-galaxy 2.9 role-based development process.
I plan to move towards collections in the future, but I believe this should be a feature handled by ansible-galaxy rather than an arbitrary bash script to keep dependencies in sync.
The code in question is available here:
compared to role’s:
Hopefully this is something that can be implemented in the near future.