Lix Development | 421 Members | |
| (Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel. | 142 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Aug 2025 | ||
| puck uses Jujutsu iwrc | 16:33:41 | |
| idk what she does with Lix with it | 16:33:47 | |
| I have seen jade_ active in Jujutsu spaces too at least | 16:33:55 | |
| yes, she has been trying to convince me to use it as well | 16:35:08 | |
| as long as you have a formatting tool that can work in-memory on entire files ( I wouldn't call this a Jujutsu perk though because as I said the exact same results can be achieved with Git and insofar as it is more awkward to do so it is only the usual Jujutsu–Git delta of awkwardness | 16:36:02 | |
| jj is great. i was hesitant to try it because i felt pretty comfortable with git despite its terrible ux but i regret not trying jj sooner because it's genuinely a huge improvement | 16:36:08 | |
In reply to @emilazy:matrix.orgyes but let's be clear again | 16:36:35 | |
| i don't want to make Lix a project that is jj-only | 16:36:43 | |
| or usable very much only if you use jj | 16:36:49 | |
| see my second paragraph :( | 16:36:54 | |
| ok sorry :( | 16:37:01 | |
| I really feel like there is a knowledge gap in how much simple merge tooling that Git supports as well as Jujutsu will resolve all formatting conflict issues automatically and that a small amount of documentation could resolve this, but I also understand that it's effectively not up for discussion | 16:37:27 | |
| because when you drum it too hard, I hear "let's make the experience great for jj users and for git… well doable but enjoy" | 16:37:27 | |
| alright. I was replying to you talking about the Jujutsu workflow around this. if you had asked about Git I could have given that information too :) | 16:37:54 | |
| it's a risk aversion thing | 16:37:54 | |
| yeah what i was focusing on is "emilazy cannot format their diffs nicely with jj on lix contributions, so i will try jj and understand what is broken or what could be improved" | 16:38:29 | |
| and maybe write docs on how to use jj with lix and stuff | 16:38:35 | |
| if it's a one line config or something that can injected in the dev shell | 16:38:48 | |
(fwiw: https://github.com/emilio/clang-format-merge/blob/master/clang-format-merge. shipping something of this complexity in the repo will make git mergetool automatically resolve all formatting conflicts) | 16:39:38 | |
| if it was this simple I already would have solved the issue and not chimed in re: WeetHet's problems
I think the options are using a colocated repository so the Git reformatter thing can work (and hoping that it works with detached | 16:44:41 | |
these are also not Jujutsu-specific problems, e.g. any use of git revise or git-branchless or Sapling will also not be getting pre-commit hooks | 16:45:07 | |
or even in 100% upstream Git, git replay which is faster than git rebase because it is in-memory | 16:45:24 | |
| I don't understand why jj couldn't pass the diff to tools to fix up only certain hunks but ok | 16:45:55 | |
| but understood | 16:46:32 | |
In reply to @emilazy:matrix.orgwe use git revise a lot. we have occasionally needed to manually reformat a commit because of it | 16:46:50 | |
| Charles you have testing to do — https://gerrit.lix.systems/c/lix/+/3856 :P | 16:46:54 | |
| ma27 thanks boss | 16:47:55 | |
| of course there is no fundamental reason (because you can do it with Git) but
so I do not find it surprising that there is no existing surface exposed for this | 16:50:53 | |
(like the fact that formatting is history-dependent is also why treefmt cannot be used for the C++ part of the codebase, it is just an awkward layering to expose to tooling) | 16:52:40 | |
| I will take all of this home and think about it and do more homework | 16:52:45 | |