home/git: misc configuration changes

This commit is contained in:
Oystein Kristoffer Tveit 2024-08-02 17:44:27 +02:00
parent be5f34a82a
commit 794aaba6a3
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 23 additions and 1 deletions

View File

@ -61,9 +61,16 @@ in
safe.directory = "*";
interactive.singleKey = true;
advice.detachedHead = false;
rerere.enabled = true;
branch.sort = "-committerdate";
branch = {
sort = "-committerdate";
autoSetupRebase = "always";
};
"color \"branch\"".upstream = "cyan";
color.ui = "auto";
@ -127,6 +134,18 @@ in
extendedRegexp = true;
};
"notes \"rewrite\"" = {
amend = true;
rebase = true;
};
versionsort = {
prereleaseSuffix = lib.mapCartesianProduct ({ binding, suffix }: "${binding}${suffix}") {
binding = [ "-" "." "/" ];
suffix = [ "pre" "alpha" "beta" "rc" ];
};
};
# Run autocorrected command after 3 seconds
help.autocorrect = "30";
@ -201,6 +220,7 @@ in
"NordicSemiconductor"
"NordicPlayground"
"nrfconnect"
"oysteintveit-nordicsemi"
];
in lib.genAttrs organizations (org: map (uri-prefix: "${uri-prefix}${org}") github-uri-prefixes);
in {
@ -236,5 +256,7 @@ in
"SC2001" # (style): See if you can use ${variable//search/replace} instead. (sed invocation)
];
})
pkgs.git-absorb
];
}