2022-12-19 09:09:08 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
2020-07-29 08:16:28 +01:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
lfs.enable = true;
|
|
|
|
userName = "Cyryl Płotnicki";
|
2022-03-20 10:36:18 +00:00
|
|
|
userEmail = "cyplo@cyplo.dev";
|
2020-10-17 13:37:33 +01:00
|
|
|
delta = {
|
|
|
|
enable = true;
|
2020-10-17 13:46:44 +01:00
|
|
|
options = {
|
|
|
|
line-numbers = true;
|
|
|
|
syntax-theme = "Solarized (dark)";
|
|
|
|
};
|
2020-10-17 13:37:33 +01:00
|
|
|
};
|
2020-07-29 08:16:28 +01:00
|
|
|
extraConfig = {
|
2020-08-01 08:33:33 +01:00
|
|
|
colour.ui = true;
|
2024-02-24 12:15:30 +00:00
|
|
|
core.fsmonitor = true;
|
2022-12-19 09:09:08 +00:00
|
|
|
credential = {helper = "cache";};
|
2024-04-27 11:33:38 +01:00
|
|
|
diff = {
|
|
|
|
algorithm = "histogram";
|
|
|
|
renameLimit = 2048;
|
|
|
|
renames = "copy";
|
|
|
|
};
|
2020-08-01 08:33:33 +01:00
|
|
|
help.autocorrect = 1;
|
2022-04-23 09:53:00 +01:00
|
|
|
init.defaultBranch = "main";
|
2024-07-17 10:53:33 +01:00
|
|
|
lfs."https://git.cyplo.dev/cyplo/dotfiles.git/info/lfs".locksverify = true;
|
2021-02-21 10:13:00 +00:00
|
|
|
merge.renamelimit = 8192;
|
2020-08-01 08:33:33 +01:00
|
|
|
mergetool.keepBackup = false;
|
2020-12-19 12:58:24 +00:00
|
|
|
pull.ff = "only";
|
|
|
|
push.default = "simple";
|
2020-07-29 08:16:28 +01:00
|
|
|
};
|
2022-03-10 12:25:23 +00:00
|
|
|
aliases = {
|
2022-12-19 09:09:08 +00:00
|
|
|
tree = "log --show-signature --color --decorate --date=short --all --graph -n 3";
|
|
|
|
newbranch = "!git checkout master && git fetch -p && git reset --hard origin/master && git checkout -b $2";
|
2022-03-10 12:25:23 +00:00
|
|
|
head = "log HEAD -n1";
|
2022-12-19 09:09:08 +00:00
|
|
|
vacuum = "!git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs -r git branch -D && git gc --aggressive --auto";
|
2022-03-10 12:25:23 +00:00
|
|
|
};
|
2021-11-22 19:32:26 +00:00
|
|
|
};
|
|
|
|
}
|