Skip to content

feat(apply): add setting to use git commit message as description#43

Merged
water-sucks merged 3 commits intomainfrom
git-tag-message
Aug 29, 2024
Merged

feat(apply): add setting to use git commit message as description#43
water-sucks merged 3 commits intomainfrom
git-tag-message

Conversation

@water-sucks
Copy link
Copy Markdown
Collaborator

Many people use git to manage their NixOS configurations. The commits that they make (unless they're bad at making commit messages) usually can serve as a good indicator of what has changed for that system, and is more often than not followed by applying the configuration after finishing the commit.

This adds a setting to automatically check the configuration directory upon application and see if it is a git repo, and if it is, it will retrieve the most recent commit message and use that as the generation description. This won't work on dirty trees, to mimic the behavior of Nix.

This is required for actions that are taken inside of the repository.
Setting the cwd for the whole process once is a lazy way of ensuring
that other processes that are spawned will happen inside that
directory, such as `git`.
@water-sucks water-sucks merged commit 40cab61 into main Aug 29, 2024
@water-sucks water-sucks deleted the git-tag-message branch August 29, 2024 21:17
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

Successfully merging this pull request may close these issues.

1 participant