From b504cf8046eaa91825c07889899bbd1418157ddc Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 13 May 2023 12:04:34 +0200 Subject: Feat(hm/conf/git): Reword git commit template --- home-manager/config/git/default.nix | 79 ++----------------------------------- 1 file changed, 3 insertions(+), 76 deletions(-) (limited to 'home-manager/config/git/default.nix') diff --git a/home-manager/config/git/default.nix b/home-manager/config/git/default.nix index 47710718..c01738e0 100644 --- a/home-manager/config/git/default.nix +++ b/home-manager/config/git/default.nix @@ -1,79 +1,4 @@ -{ - config, - pkgs, - ... -}: let - gitIgnoreFile = pkgs.writeText "git_ignore.git" '' - Session.vim - ''; - gitTemplateFile = - pkgs.writeText "git_template.git" - '' - # Title: Summary, imperative, start upper case, don't end with a period - # If applied, this commit will - - # Body: Explain *what* and *why* (not *how*). - - - # BREAKING CHANGE: - # Fixes: # - # Refs: # - # Co-authored-by: - - - - # Convention Commits (https://www.conventionalcommits.org/en/v1.0.0/): - # feat: [Features] -> MINOR version bump - # A new feature - # - # fix: [Bug Fixes] -> PATCH version bump - # A bug fix - # - # append '!' after the type/scope: [Breaking Change] -> MAJOR version bump - # A breaking API change - # - # docs: [Documentation] - # Documentation only changes - # - # style: [Styles] - # Changes that do not affect the meaning of the code - # (white-space, formatting, missing semi-colons, etc) - # - # refactor: [Code Refactoring] - # A code change that neither fixes a bug nor adds a feature - # - # perf: [Performance Improvements] -> PATCH version bump - # A code change that improves performance - # - # test: [Tests] - # Adding missing tests or correcting existing tests - # - # build: [Builds] -> PATCH version bump - # Changes that affect the build system or external dependencies - # (example scopes: gulp, broccoli, npm) - # - # ci: [Continuous Integrations] - # Changes to our CI configuration files and scripts - # (example scopes: Travis, Circle, BrowserStack, SauceLabs) - # - # chore: [Chores] - # Other changes that don't modify src or test files - # - # reverts: [Reverts] - # Reverts a previous commit - - # How to Write a Git Commit Message: - # [https://chris.beams.io/posts/git-commit/] -> https://cbea.ms/git-commit/ - # - # 1. Separate subject from body with a blank line - # 2. Limit the subject line to 50 characters - # 3. Capitalize the subject line - # 4. Do not end the subject line with a period - # 5. Use the imperative mood in the subject line - # 6. Wrap the body at 72 characters - # 7. Use the body to explain *what* and *why* vs. *how* - ''; - +{...}: let gitConfig = { core = { excludesFile = "${gitIgnoreFile}"; @@ -92,6 +17,8 @@ template = "${gitTemplateFile}"; }; }; + gitIgnoreFile = ./git_ignore.git; + gitTemplateFile = ./git_template.git; in { programs.git = { enable = true; -- cgit 1.4.1