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

Pass Git SHA/hash as a private cookiecutter variable #291

Open
ESKYoung opened this issue Feb 25, 2024 · 1 comment
Open

Pass Git SHA/hash as a private cookiecutter variable #291

ESKYoung opened this issue Feb 25, 2024 · 1 comment

Comments

@ESKYoung
Copy link

cruft already stores the commit SHA/hash whenever in the .cruft.json file.

Whilst not a direct feature enhancement for cruft itself, it might be useful for users to be able to access to the commit hash in their downstream projects.

It should be straightforward to pass this as a private cookiecutter variable, since this is already done for the template variable (stored as the private variable _template).

This would solve a related ask in the cookiecutter project.

@ESKYoung
Copy link
Author

I'm already working on this!

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