2024-12-18 22:15:42 -08:00
|
|
|
{ ... }:
|
|
|
|
let
|
|
|
|
MyAliases = {
|
|
|
|
l = [
|
|
|
|
"log"
|
|
|
|
"-r"
|
2025-10-05 17:34:20 -07:00
|
|
|
"ancestors(reachable(@, mutable()), 2)"
|
|
|
|
];
|
|
|
|
n = [ "new" ];
|
|
|
|
tug = [
|
|
|
|
"bookmark"
|
|
|
|
"move"
|
|
|
|
"--from"
|
|
|
|
"closest_bookmark(@-)"
|
|
|
|
"--to"
|
|
|
|
"@-"
|
2024-12-18 22:15:42 -08:00
|
|
|
];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
programs.jujutsu = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
aliases = MyAliases;
|
2025-10-05 17:34:20 -07:00
|
|
|
gerrit.enabled = false;
|
|
|
|
git = {
|
|
|
|
subprocess = true;
|
|
|
|
};
|
2024-12-18 22:15:42 -08:00
|
|
|
signing = {
|
|
|
|
key = "~/.ssh/id_ed25519.pub";
|
|
|
|
};
|
2025-10-05 17:34:20 -07:00
|
|
|
templates = {
|
2025-10-05 19:22:16 -07:00
|
|
|
git_push_bookmark = "\"softinio/push-\" ++ change_id.short()";
|
2025-10-05 17:34:20 -07:00
|
|
|
};
|
2024-12-18 22:15:42 -08:00
|
|
|
ui = {
|
2025-10-05 17:34:20 -07:00
|
|
|
default-command = "l";
|
2025-06-14 10:08:22 -07:00
|
|
|
diff-formatter = [
|
2024-12-18 22:15:42 -08:00
|
|
|
"difft"
|
|
|
|
"--color=always"
|
|
|
|
"$left"
|
|
|
|
"$right"
|
|
|
|
];
|
|
|
|
editor = "nvim";
|
|
|
|
merge-editor = [
|
2025-10-04 15:19:46 -07:00
|
|
|
"idea"
|
2024-12-18 22:15:42 -08:00
|
|
|
"$left"
|
|
|
|
"$right"
|
2025-10-04 15:19:46 -07:00
|
|
|
"$base"
|
2024-12-18 22:15:42 -08:00
|
|
|
"$output"
|
|
|
|
];
|
|
|
|
pager = "less -FRX";
|
|
|
|
};
|
|
|
|
user = {
|
|
|
|
name = "Salar Rahmanian";
|
|
|
|
email = "code@softinio.com";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|