feat: Improve jujutsu ux with rad
This commit is contained in:
parent
67c35b2dc5
commit
e008184451
2 changed files with 23 additions and 4 deletions
|
|
@ -45,8 +45,11 @@
|
||||||
};
|
};
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.user = {
|
settings = {
|
||||||
inherit (cfg) email name;
|
alias.patch = "push rad HEAD:refs/patches";
|
||||||
|
user = {
|
||||||
|
inherit (cfg) email name;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,12 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
"$schema" = "https://jj-vcs.github.io/jj/latest/config-schema.json";
|
"$schema" = "https://jj-vcs.github.io/jj/latest/config-schema.json";
|
||||||
|
aliases = {
|
||||||
|
dlog = ["log" "-r"];
|
||||||
|
l = ["log" "-r" "(trunk()..@):: | (trunk()..@)-"];
|
||||||
|
fresh = ["new" "trunk()"];
|
||||||
|
tug = ["bookmark" "move" "--from" "closest_bookmark(@)" "--to" "closest_pushable(@)"];
|
||||||
|
};
|
||||||
snapshot = {
|
snapshot = {
|
||||||
auto-track = "true";
|
auto-track = "true";
|
||||||
max-new-file-size = 0;
|
max-new-file-size = 0;
|
||||||
|
|
@ -77,8 +83,18 @@ in {
|
||||||
"format_short_signature(signature)" = "signature";
|
"format_short_signature(signature)" = "signature";
|
||||||
};
|
};
|
||||||
revset-aliases = {
|
revset-aliases = {
|
||||||
"immutable_heads()" = ''
|
"closest_bookmark(to)" = "heads(::to & bookmarks())";
|
||||||
builtin_immutable_heads() | (trunk().. & ~mine())
|
"closest_pushable(to)" = "heads(::to & mutable() & ~description(exact:\"\") & (~empty() | merges()))";
|
||||||
|
"desc(x)" = "description(x)";
|
||||||
|
"pending()" = ".. ~ ::tags() ~ ::remote_bookmarks() ~ @ ~ private()";
|
||||||
|
"private()" = ''
|
||||||
|
description(glob:'wip:*') |
|
||||||
|
description(glob:'private:*') |
|
||||||
|
description(glob:'WIP:*') |
|
||||||
|
description(glob:'PRIVATE:*') |
|
||||||
|
conflicts() |
|
||||||
|
(empty() ~ merges()) |
|
||||||
|
description(substring-i:"DO NOT NAIL")
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
git = {
|
git = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue