From d5ec493b92cffef5e130f3f8cf93d14030822b87 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 19 Feb 2021 22:06:51 +0000 Subject: [PATCH] home: git: add EPITA identity Make it conditional on the repositorie's path, as with the Arch configuration. --- home/git/default.nix | 5 +++++ home/git/epita.config | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 home/git/epita.config diff --git a/home/git/default.nix b/home/git/default.nix index fab4b7b..fa8c70e 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -91,5 +91,10 @@ autoStash = true; }; }; + + # Multiple identities + includes = [ + { path = ./epita.config; condition = "gitdir:~/git/EPITA/"; } + ]; }; } diff --git a/home/git/epita.config b/home/git/epita.config new file mode 100644 index 0000000..a6e8cf4 --- /dev/null +++ b/home/git/epita.config @@ -0,0 +1,4 @@ +[user] + email = bruno.belanyi@epita.fr + name = Bruno BELANYI +# vim: set ft=gitconfig: