Skip to content

Commit

Permalink
Configure git to use conditional owners for gitlabd and github
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbour committed Jan 27, 2025
1 parent 896a8fa commit 0f08e85
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions home/features/cli/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,27 @@ in
signByDefault = !builtins.isNull user-info.gpg.signKey;
};

includes = [
{
condition = "hasconfig:remote.*.url:git@github.com:*";
contents = {
user = {
name = "Cristian Bourceanu";
email = "v.c.bourceanu@sms.ed.ac.uk";
};
};
}
{
condition = "hasconfig:remote.*.url:git@git.ecdf.ed.ac.uk:*";
contents = {
user = {
name = "Cristi Bourceanu";
email = "bourceanu.crsti@gmail.com";
};
};
}
];

aliases = {
cm = "commit";
ca = "commit --amend --no-edit";
Expand Down

0 comments on commit 0f08e85

Please sign in to comment.