git enable signoff and change mergetool

Signed-off-by: cy <cy@cy7.sh>
This commit is contained in:
cy 2025-01-24 05:44:35 -05:00
parent 947249cc79
commit 4fa0aed92e
2 changed files with 8 additions and 7 deletions

View file

@ -44,7 +44,11 @@
rebase = true; rebase = true;
autostash = true; autostash = true;
}; };
merge.tool = "vimdiff"; merge = {
tool = "vimdiff";
keepBackup = false;
prompt = false;
};
rebase = { rebase = {
stat = true; stat = true;
autoStash = true; autoStash = true;
@ -52,10 +56,7 @@
updateRefs = true; updateRefs = true;
}; };
help.autocorrect = 1; help.autocorrect = 1;
mergetool = { "mergetool \"vimdiff\"".cmd = "nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'";
prompt = false;
path = "nvim-open";
};
}; };
}; };
programs.ripgrep.enable = true; programs.ripgrep.enable = true;

View file

@ -94,8 +94,8 @@
"ga" = "git add"; "ga" = "git add";
"gaa" = "git add --all"; "gaa" = "git add --all";
"gb" = "git branch"; "gb" = "git branch";
"gc" = "git commit --verbose"; "gc" = "git commit --verbose -s";
"gcmsg" = "git commit --message"; "gcmsg" = "git commit -s --message";
"gd" = "git diff"; "gd" = "git diff";
"gdca" = "git diff --cached"; "gdca" = "git diff --cached";
"gds" = "git diff --staged"; "gds" = "git diff --staged";