2022-11-04 10:25:20 +01:00
|
|
|
{ pkgs }:
|
2022-02-02 21:50:24 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
userName = "Daniel Siepmann";
|
|
|
|
userEmail = "coding@daniel-siepmann.de";
|
|
|
|
|
|
|
|
signing = {
|
|
|
|
key = "15560EF4";
|
2022-11-04 10:25:20 +01:00
|
|
|
signByDefault = true;
|
2022-02-02 21:50:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
aliases = {
|
|
|
|
c = "checkout";
|
2024-02-15 07:23:55 +01:00
|
|
|
f = "fetch";
|
2022-02-02 21:50:24 +01:00
|
|
|
s = "status -s";
|
2024-02-15 07:23:55 +01:00
|
|
|
|
|
|
|
ss = "show -s";
|
2022-02-02 21:50:24 +01:00
|
|
|
dc = "diff --cached";
|
2024-02-15 07:23:55 +01:00
|
|
|
rh = "reset --hard";
|
2022-02-02 21:50:24 +01:00
|
|
|
|
|
|
|
sc = "switch -c";
|
|
|
|
st = "switch -t";
|
|
|
|
|
|
|
|
com = "commit";
|
|
|
|
|
2024-05-22 12:05:38 +02:00
|
|
|
lg = "log --graph --pretty=format:'%h %an: %s - %Creset %C(green)%d%Creset %Cblue(%cr)%Creset' --abbrev-commit --date=relative";
|
2022-02-02 21:50:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
ignores = [
|
|
|
|
# Some files which might be generated by system or tools
|
|
|
|
"*~"
|
|
|
|
"*.swp"
|
|
|
|
"*.swn"
|
|
|
|
"*.swo"
|
|
|
|
"*.orig"
|
|
|
|
"*.rej"
|
|
|
|
"*.pyc"
|
|
|
|
"*.bak"
|
|
|
|
"*/tags"
|
|
|
|
"/tags"
|
|
|
|
"*.~lock.*#"
|
2023-08-08 10:45:56 +02:00
|
|
|
".phpactor.json"
|
2023-10-18 15:14:05 +02:00
|
|
|
".ignore"
|
2022-04-14 15:46:49 +02:00
|
|
|
# As I'm using nix-shell in many projects for my own confidence
|
|
|
|
"shell.nix"
|
2022-02-02 21:50:24 +01:00
|
|
|
|
|
|
|
# Some generics which occur in some projects
|
|
|
|
"build/"
|
|
|
|
"logs/"
|
|
|
|
|
|
|
|
# PHP Specific
|
|
|
|
".phpunit.result.cache"
|
2023-02-07 08:57:26 +01:00
|
|
|
".phpunit.cache"
|
2023-02-16 15:38:32 +01:00
|
|
|
".php-cs-fixer.cache"
|
2024-03-06 16:54:59 +01:00
|
|
|
"codeception.yml"
|
2024-03-14 07:23:53 +01:00
|
|
|
"codeception.yml_"
|
2022-02-02 21:50:24 +01:00
|
|
|
"phpcs.xml"
|
|
|
|
|
|
|
|
# TYPO3 documentation specific
|
|
|
|
"Documentation-GENERATED-temp*/"
|
2022-10-05 16:53:54 +02:00
|
|
|
# Customer specific
|
|
|
|
"config/env/development-dsiepmann/"
|
2022-02-02 21:50:24 +01:00
|
|
|
];
|
|
|
|
|
2023-01-02 16:54:09 +01:00
|
|
|
diff-so-fancy = {
|
|
|
|
enable = true;
|
2023-01-03 15:23:43 +01:00
|
|
|
markEmptyLines = false;
|
|
|
|
stripLeadingSymbols = false;
|
|
|
|
useUnicodeRuler = false;
|
2023-01-02 16:54:09 +01:00
|
|
|
};
|
2022-03-16 09:04:03 +01:00
|
|
|
|
2022-02-02 21:50:24 +01:00
|
|
|
extraConfig = {
|
|
|
|
advice = {
|
|
|
|
detachedHead = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
branch = {
|
|
|
|
autosetuprebase = "always";
|
|
|
|
};
|
|
|
|
|
2024-02-12 09:23:19 +01:00
|
|
|
fetch = {
|
|
|
|
prune = true;
|
|
|
|
};
|
|
|
|
|
2022-02-02 21:50:24 +01:00
|
|
|
color = {
|
|
|
|
diff = "auto";
|
|
|
|
status = "auto";
|
|
|
|
branch = "auto";
|
|
|
|
interactive = "auto";
|
|
|
|
ui = "auto";
|
|
|
|
};
|
|
|
|
|
2022-12-13 08:43:21 +01:00
|
|
|
core = {
|
|
|
|
whitespace = "-blank-at-eol,-space-before-tab,-indent-with-non-tab,-tab-in-indent,-blank-at-eof,-trailing-space-,cr-at-eol";
|
|
|
|
};
|
|
|
|
|
2024-02-28 08:37:10 +01:00
|
|
|
diff = {
|
|
|
|
# Not possible right now, due to: https://github.com/gitonomy/gitlib/issues/114 for own customer project
|
|
|
|
# noprefix = true;
|
|
|
|
algorithm = "histogram";
|
|
|
|
};
|
2022-12-13 08:43:21 +01:00
|
|
|
|
2022-03-30 13:02:58 +02:00
|
|
|
pager = {
|
|
|
|
branch = false;
|
|
|
|
show = false;
|
|
|
|
};
|
|
|
|
|
2022-02-02 21:50:24 +01:00
|
|
|
grep = {
|
|
|
|
lineNumber = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
help = {
|
|
|
|
autocorrect = 1;
|
|
|
|
};
|
|
|
|
|
2023-04-08 20:01:43 +02:00
|
|
|
init = {
|
|
|
|
defaultBranch = "main";
|
|
|
|
};
|
|
|
|
|
2022-02-02 21:50:24 +01:00
|
|
|
push = {
|
|
|
|
default = "current";
|
|
|
|
gpgSign = "if-asked";
|
2024-02-12 09:23:19 +01:00
|
|
|
autoSetupRemote = true;
|
2022-02-02 21:50:24 +01:00
|
|
|
};
|
|
|
|
|
2023-04-08 20:01:43 +02:00
|
|
|
pull = {
|
|
|
|
rebase = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
rebase = {
|
|
|
|
autoStash = true;
|
2024-02-12 09:23:19 +01:00
|
|
|
autosquash = true;
|
2022-02-02 21:50:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
merge = {
|
|
|
|
ff = true;
|
2024-02-28 08:37:10 +01:00
|
|
|
conflictstyle = "zdiff3";
|
2024-03-05 07:32:04 +01:00
|
|
|
tool = "nvim";
|
2022-02-21 13:39:22 +01:00
|
|
|
};
|
|
|
|
|
2024-03-05 07:32:04 +01:00
|
|
|
"mergetool \"nvim\"" = {
|
|
|
|
cmd = "nvim $MERGED";
|
2022-02-02 21:50:24 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|