Replies: 4 comments 21 replies
-
I do sometimes want to Also, this was just before my time, but |
Beta Was this translation helpful? Give feedback.
-
Despite you suggesting to rename |
Beta Was this translation helpful? Give feedback.
-
I personally prefer the current model because it feels very consistent since Maybe some of these issues could be resolved more easily by just adding a new revset called So basically when you check out a commit, it would show that commit as |
Beta Was this translation helpful? Give feedback.
-
Can we look with fresh eyes? Here's two versions of a jj intro doc, one for "eager new" and the other for "lazy new". I tried to make them both appropriately simple and pithy, and I'd be happy to improve either. Obviously it'd be silly to update them for partisan reasons 😄
You'll notice that the line talking about lazy goes right after the line talking about connecting change and working copy, implying that they are similar features. Also notice that the doc for lazy doesn't need any concept of a "finished" change. Unlike in the discussion above it keeps the "new" command and gets rid of the "commit" command. IMHO this simplicity of intro doc corresponds to a simplicity of underlying model. |
Beta Was this translation helpful? Give feedback.
-
It would be nice to banish empty commits, and to enable users not to have to care about them in the form of @- vs @. It would also be nice to be a little more opinionated and automatic for "squash workflow" vs "edit workflow". For example, users shouldn't have to care about whether to use
new
oredit
for modifying vs viewing historical commits. #3129 #3660Therefore, let's make
new
be lazy in the sense that a commit/change is only created when the working copy is actually modified.I.e. for:
This proposal is to create the commit at 3 instead of 1.
Other niggles: would probably also want to go ahead and create the commit for
jj describe
modifications as well as working copy modifications. Might also want to renamenew
to something like "get", especially if there's openness to employcommit
instead ofnew
in one use case.(And fun: to one way of looking at it, this would make the old "open" vs "closed" be a property of the working copy! The working copy would open either via
edit
or on a commit which it just created, and would close withnew
,commit
, oredit
of a different commit.)Beta Was this translation helpful? Give feedback.
All reactions