Replies: 3 comments
-
Re: One workaround is possibly having a commit graph like:
and cherry-picking |
Beta Was this translation helpful? Give feedback.
-
I saw this feature request and it looked familiar because we had received the request for Mercurial from Jeffrey in our Google-internal bug tracker for Fig :) I remember saying that it should be easy to implement in the next generation of Fig. I've now filed martinvonz/jj#1079 to track it. |
Beta Was this translation helpful? Give feedback.
-
In practice, I just create a stack of commits without spurious dependencies, and then See also the discussion at #553, which addresses more or less the same workflow. I think using Jujutsu and relying on automatically-rebased merge commits is probably the best way to accomplish your workflow. |
Beta Was this translation helpful? Give feedback.
-
Let's say I'm working on a new feature, and I've broken it up into 3 separate pieces:
C
relies on the changes in bothA
andB
, butA
andB
aren't actually all that related. They touch different parts of the code base, and they're unrelated enough that it actually makes sense for me to have them reviewed by different people. I think it'd be pretty neat if git branchless would let me easily rework history to look likeand then I could send
A
andB
out for review whileC
still works as expected.I suspect something like this might be significantly more useful (at least for me) after
git stage
/git split
from #48 are implemented, since I generally expect I'd be carving off unrelated pieces of the commit into separate standalone commits so that they're easier to review and merge.I guess this maybe also broaches a broader topic of how does git branchless handle merge commits. I did some local testing, and it doesn't look like it handles merge commits all that gracefully (happy to try and whip up some reproduction steps if this is interesting to you)
Beta Was this translation helpful? Give feedback.
All reactions