31 lines
679 B
Nix
31 lines
679 B
Nix
{
|
|
wrappers,
|
|
pkgs,
|
|
extraSettings ? { },
|
|
}:
|
|
let
|
|
git = wrappers.wrapperModules.git.apply {
|
|
inherit pkgs;
|
|
settings = pkgs.lib.recursiveUpdate {
|
|
alias = {
|
|
co = "checkout";
|
|
br = "branch";
|
|
ci = "commit";
|
|
cm = "commit -m";
|
|
st = "status -s";
|
|
amend = "commit --amend";
|
|
unstage = "reset HEAD --";
|
|
last = "log -1 HEAD";
|
|
diffs = "diff --staged";
|
|
pushf = "push --force-with-lease";
|
|
logs = "log --pretty=oneline";
|
|
};
|
|
pull.ff = "only";
|
|
rebase.autoStash = true;
|
|
merge.autoStash = true;
|
|
push.autoSetupRemote = true;
|
|
} extraSettings;
|
|
};
|
|
in
|
|
git.wrapper
|