aboutsummaryrefslogtreecommitdiff
path: root/users/programs/git.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--users/programs/git.nix (renamed from users/profiles/git.nix)29
1 files changed, 0 insertions, 29 deletions
diff --git a/users/profiles/git.nix b/users/programs/git.nix
index ebc753b..a95bb11 100644
--- a/users/profiles/git.nix
+++ b/users/programs/git.nix
@@ -37,29 +37,6 @@ in
logf = "log --pretty=format:\"%C(yellow)%h%Cred%d %Creset%s%Cblue (%cn)\" --decorate --numstat";
};
- # https://stackoverflow.com/questions/74012449/git-includeif-hasconfigremote-url-not-working
- # to test it's working as expected:
- # run `git config --get-all user.email' in a repository to check that we get all the possible emails
- # run `git config --get user.email' in a repository to check which email is selected
- includes = [
- {
- condition = "hasconfig:remote.*.url:git@github.rbx.com:*/**";
- path = pkgs.writeText "username.cfg" (lib.generators.toGitINI { user.email = "fcuny@roblox.com"; });
- }
- {
- condition = "hasconfig:remote.*.url:git@github.com:Roblox/**";
- path = pkgs.writeText "username.cfg" (lib.generators.toGitINI { user.email = "fcuny@roblox.com"; });
- }
- {
- condition = "hasconfig:remote.*.url:https://github.com/Roblox/**";
- path = pkgs.writeText "username.cfg" (lib.generators.toGitINI { user.email = "fcuny@roblox.com"; });
- }
- {
- condition = "hasconfig:remote.*.url:https://github.rbx.com/*/**";
- path = pkgs.writeText "username.cfg" (lib.generators.toGitINI { user.email = "fcuny@roblox.com"; });
- }
- ];
-
ignores = [
".DS_Store"
".aider.*"
@@ -109,12 +86,6 @@ in
autosetuprebase = "remote";
sort = "authordate";
};
-
- url = {
- "ssh://git@github.rbx.com/" = {
- insteadOf = "https://github.rbx.com/";
- };
- };
};
};
}