3 ms·
Does jujutsu have anything like "git am"? I'd like to take a series of patches and jj-ify them so I can play with it. I get that maybe I can't expect to cherry
by wyldfire 2y ago
Does jujutsu have anything like "git am"? I'd like to take a series of patches and jj-ify them so I can play with it. I get that maybe I can't expect to cherry pick a commit because it's naturally different from git. but if I have a patch it seems like I should be able to apply those as jj changes?
- KingMob 2y agoThere's no succinct command designed to work with mailed patches yet, but you could mimic it with a little scripting. Maybe something like this? ``` for patch_file in "$@"; do jj new patch -p1 < "$patch_file" author=$(extract_author "$patch_file") commit_message=$(extract_commit_message "$patch_file") jj describe -m "$commit_message" --author "$author" done ```