There are some repositories where there's no "main" or "master" branch. In this case, it would be nice to use "truck" as the main branch
+1
-1
packetmix/homes/development/jujutsu.nix
+1
-1
packetmix/homes/development/jujutsu.nix
···
369
"closest_bookmark(to)" = "heads(::to & bookmarks())";
370
"closest_pushable_allow_empty_desc(to)" = "heads(::to & mutable() & (~empty() | merges()))";
371
372
-
"main" = "coalesce(bookmarks(exact:'main'), bookmarks(exact:'master'))";
373
374
"series(tip, length)" = "back(tip, length)::tip";
375
};
···
369
"closest_bookmark(to)" = "heads(::to & bookmarks())";
370
"closest_pushable_allow_empty_desc(to)" = "heads(::to & mutable() & (~empty() | merges()))";
371
372
+
"main" = "coalesce(bookmarks(exact:'main'), bookmarks(exact:'master'), trunk())";
373
374
"series(tip, length)" = "back(tip, length)::tip";
375
};
History
1 round
0 comments
a.starrysky.fyi
submitted
#0
1 commit
expand
collapse
feat(pm/jujutsu): add trunk() to main revset
There are some repositories where there's no "main" or "master" branch.
In this case, it would be nice to use "truck" as the main branch
expand 0 comments
pull request successfully merged