Anyone using jj to manage dotfiles with YADM? #9595
Unanswered
ian-h-chamberlain
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, I've started using jj with some more typical workflows on some existing projects (i.e. colocated repos) and it's been pretty nice so far! I was thinking some of the features (first-class conflicts, powerful mix-and-match, automatic tracking) would be really nice for managing my dotfiles repo, but so far I haven't been able to figure out how to set it up.
I have used
yadmto manage my dotfiles for a while, which as I understand it basically works as a simple wrapper aroundgit, with a few things that make it a lot more manageable to use than plaingit:GIT_WORK_TREE="$HOME", all git operations are relative to the home dirGIT_DIR="$HOME/.local/share/yadm/repo.git"to hide the git repo "out of sight"~/.cacheetc.yadm enteris also a nice little wrapper command which (generally speaking) sets these environment vars to allow any command that works withgitto work withyadmas well, e.g. Git GUIs and things like that which use thegitCLI for their underlying operations.So the core of my question — is it possible to use
jjin a setup like this? From what I can gather,GIT_DIRandGIT_WORK_TREEare maybe partially supported? e.g. I found #3377 and #6437 so I am not sure exactly how well-supported these vars are.I tried to
yadm enter jj git initand I found it basically just created a brand new git repo at~/.git(seemingly ignoringGIT_DIR).Then I tried following some of the "manual" steps listed in https://www.jj-vcs.dev/latest/git-compatibility/#converting-a-workspace-into-a-colocated-workspace to force–set the path of the
repo.gitdir, but ran into this:And this object indeed does not appear to exist in my
yadmrepo, so I'm guessing it's some kind of stale state that I would need to manually fix up.So, to sum up, does anyone have tips or ideas of how to accomplish this (if it's even possible with current
jj)? Am I crazy for even attempting this? Thanks in advance!All reactions