git: allow extraSettings
This commit is contained in:
@@ -1,8 +1,12 @@
|
|||||||
{ wrappers, pkgs }:
|
{
|
||||||
|
wrappers,
|
||||||
|
pkgs,
|
||||||
|
extraSettings ? { },
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
git = wrappers.wrapperModules.git.apply {
|
git = wrappers.wrapperModules.git.apply {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
settings = {
|
settings = pkgs.lib.recursiveUpdate {
|
||||||
alias = {
|
alias = {
|
||||||
co = "checkout";
|
co = "checkout";
|
||||||
br = "branch";
|
br = "branch";
|
||||||
@@ -20,7 +24,7 @@ let
|
|||||||
rebase.autoStash = true;
|
rebase.autoStash = true;
|
||||||
merge.autoStash = true;
|
merge.autoStash = true;
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
};
|
} extraSettings;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
git.wrapper
|
git.wrapper
|
||||||
|
|||||||
Reference in New Issue
Block a user