27 lines
612 B
Nix
27 lines
612 B
Nix
{ wrappers, pkgs }:
|
|
let
|
|
git = wrappers.wrapperModules.git.apply {
|
|
inherit pkgs;
|
|
settings = {
|
|
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;
|
|
};
|
|
};
|
|
in
|
|
git.wrapper
|