From a3ab645a2b1990879c2e29b309a8ac92af23664f Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.uk> Date: Sat, 26 Aug 2023 22:22:31 +0100 Subject: [PATCH] feat(git): add an `Refs` placeholder to commit ...message body Add an `# Refs:` placeholder to the Git commit message body that can be replaced manually or using a `prepare-commit-msg` hook. I have a templated Git hook that will do this within project directories using an `.issue-id` file. --- system/shared/home-manager.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system/shared/home-manager.nix b/system/shared/home-manager.nix index ee10b50d..e9c088b8 100644 --- a/system/shared/home-manager.nix +++ b/system/shared/home-manager.nix @@ -106,9 +106,16 @@ in # line and describe the change: # # BREAKING CHANGE: + # + # + # Add any issue IDs or commit SHAs that this commit references: + # + # Refs: + ''; home.file.".gitignore-global".text = '' + .issue-id .phpactor.json '';