Skip to content

Commit

Permalink
feat: sign-off git commits with Canonical email in ~/code/canonical
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed Oct 23, 2023
1 parent 47250fe commit 76abb69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions home/common/shell/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ _: {
home.file.".config/git/allowed_signers".text = ''
[email protected] [email protected] AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIB9bIEMgZVBCDxBWQ4m4hQP6ZZp0P3TfzjzcgUOdbYDLAAAABHNzaDo= YK5C
[email protected] [email protected] AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIBC8cs1B64XqEswY5pART6yERbjUMB7RdQdT38dgkZT6AAAABHNzaDo= YK5
[email protected] [email protected] AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIB9bIEMgZVBCDxBWQ4m4hQP6ZZp0P3TfzjzcgUOdbYDLAAAABHNzaDo= YK5C
[email protected] [email protected] AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIBC8cs1B64XqEswY5pART6yERbjUMB7RdQdT38dgkZT6AAAABHNzaDo= YK5
'';

programs = {
Expand All @@ -19,6 +21,13 @@ _: {
userEmail = "[email protected]";
userName = "Jon Seager";

# When the working directory is under ~/code/canonical then sign-off commits
# with Canonical email address.
includes = [{
condition = "gitdir:~/code/canonical/";
contents.user.email = "[email protected]";
}];

aliases = {
lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
};
Expand Down

0 comments on commit 76abb69

Please sign in to comment.