ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli
Yuya Nishihara 0fe25575ba cli: ensure first new HEAD is detached
The problem is that the first non-working-copy commit moves the unborn current
branch to that commit, but jj doesn't "export" the moved branch. Therefore,
the next jj invocation notices the "external" ref change, which was actually
made by jj.

I'm not sure why we play nice by setting the "current" HEAD, but I *think* it's
okay to set the "new" HEAD and reset to the same commit to clear Git index.
2023-10-03 00:58:22 +09:00
..
examples backend: move constant functions first 2023-09-19 05:24:51 -07:00
src cli: ensure first new HEAD is detached 2023-10-03 00:58:22 +09:00
testing fake_diff_editor: Allow specifying extra arguments to be ignored 2023-08-21 20:19:15 -07:00
tests cli: ensure first new HEAD is detached 2023-10-03 00:58:22 +09:00
build.rs build: update rerun-if conditions to watch .git/HEAD in colocated repo 2023-08-06 12:16:11 +09:00
Cargo.toml cargo: make jj installable with cargo binstall 2023-09-20 09:35:18 -07:00
LICENSE cargo: add LICENSE file to each crate we publish 2023-09-22 21:48:28 -07:00