Replies: 3 comments 23 replies
-
Note that this is the default behavior for all commands: a working-copy commit emptied by a command will always create a new working-copy commit. Perhaps we should create a new flag which avoids creating a new working-copy commit and updates the working copy to be a parent instead? |
Beta Was this translation helpful? Give feedback.
-
@bnjmnt4n Yes, it looks like a default behavior, which is quite counter-intuitive and although not destructive, it's something I think should be avoided as possible. I'm personally in favor of the opposite solution, don't make implicitly new commit, but either use some parameter like |
Beta Was this translation helpful? Give feedback.
-
Okay, I agree. That is probably even better default, especially when you can do
Many people are not oriented towards evolution/development and just accept suboptimal status quo (and some are even able to fight for it) 🙂
Yes, why do the right thing, when you can do wrong one and wait for somebody to yell at you 😀 Maybe jj should ask (or make that configurable) if it should update the current commit, or move the changes to the new one, but implicitly creating new commits is not a good default the same way as you wouldn't want your editor to behave that way... |
Beta Was this translation helpful? Give feedback.
-
I think it's a bad practice to implicitly create news commits when the user doesn't explicitly ask for it.
Possible solution: move WCC to it's parent and in case of multiple parents, randomly choose one and print warning
Relates to
prev
,next
and possibly others...Beta Was this translation helpful? Give feedback.
All reactions