home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7a0ba9d7f809461afa29993e968cb3b8582014a0
parent edca8911e2534998e65a7b132cf23f03e4ce099d
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Wed, 26 Sep 2018 12:14:00 +0200

git: includeIf on RedHat projects

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mgit.nix | 24+++++++++++++++++++++++-
Agit/redhat.gitconfig | 4++++
2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/git.nix b/git.nix @@ -1,6 +1,5 @@ { pkgs, config, lib, ... }: - let ca-bundle_crt = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; in rec { @@ -106,10 +105,33 @@ rec { = "git://github.com/"; }; + includes = [ + { + path = "~/.config/git/config.d/redhat.gitconfig"; + condition = "gitdir:~/src/github.com/knative/"; + } + { + path = "~/.config/git/config.d/redhat.gitconfig"; + condition = "gitdir:~/src/k8s.io/"; + } + { + path = "~/.config/git/config.d/redhat.gitconfig"; + condition = "gitdir:~/src/github.com/operator-framework/"; + } + { + path = "~/.config/git/config.d/redhat.gitconfig"; + condition = "gitdir:~/src/github.com/openshift/"; + } + { + path = "~/.config/git/config.d/redhat.gitconfig"; + condition = "gitdir:~/src/github.com/redhat-developer/"; + } + ]; ignores = [ "*.elc" "*.vo" "*.aux" "*.v.d" "*.o" "*.a" "*.la" "*.so" "*.dylib" "*.pyc" "*.pyo" ".idea" "*.iml" "*~" "#*#" ".makefile" ".clean" ]; }; + xdg.configFile."git/config.d/redhat.gitconfig".source = ./git/redhat.gitconfig; } diff --git a/git/redhat.gitconfig b/git/redhat.gitconfig @@ -0,0 +1,3 @@ +[user] + name = Vincent Demeester + email = vdemeest@redhat.com+ \ No newline at end of file