Comments (5)
There's some prior discussion in #3932, but I believe the consensus is that jj branch set
can set the branch (creating one if it doesn't already exist, and giving a warning to use jj branch move
if the intent is not to create new branches). I guess it might be possible to add a -r
flag to jj branch move
, but that doesn't fully align with the --from
and --to
argument names as well (which is why I think --to
was chosen).
Even so, I believe there's an error in your initial issue: you can't "move" a remote branch locally. The only way to do that is to move the local tracking branch to the desired commit (via jj branch set/move
) and jj git push
to push the branch and update the remote branch. (#3588 is a feature request for pushing a specific commit directly to the given branch, which might be what you're looking for.)
from jj.
as
jj branch move
uses the--to
flag instead of the-r
flag.
Do you want -r
specifically? or is it okay if --to
had a short flag? We have --from
/--to
combinations in various commands, and it'll probably make sense to add short names for them.
from jj.
as
jj branch move
uses the--to
flag instead of the-r
flag.Do you want
-r
specifically? or is it okay if--to
had a short flag? We have--from
/--to
combinations in various commands, and it'll probably make sense to add short names for them.
Short flags would be nice
from jj.
There's some prior discussion in #3932, but I believe the consensus is that
jj branch set
can set the branch (creating one if it doesn't already exist, and giving a warning to usejj branch move
if the intent is not to create new branches). I guess it might be possible to add a-r
flag tojj branch move
, but that doesn't fully align with the--from
and--to
argument names as well (which is why I think--to
was chosen).
I still believe this should be an error by default (creating a branch with an @
in the name).
Even so, I believe there's an error in your initial issue: you can't "move" a remote branch locally. The only way to do that is to move the local tracking branch to the desired commit (via
jj branch set/move
) andjj git push
to push the branch and update the remote branch. (#3588 is a feature request for pushing a specific commit directly to the given branch, which might be what you're looking for.)
And it should probably be an error if I try to move a remote tracking branch c:
from jj.
I still believe this should be an error by default (creating a branch with an
@
in the name).
I don't think it should be an error (because @
is a valid branch name), but I understand it's confusing. Perhaps, a warning can be emitted if a branch name contained a certain meta characters (such as :
, @
, *
, ?
.)
from jj.
Related Issues (20)
- FR: Equivalent to `git ls-files`? HOT 3
- jj git fetch downloads branches with names uppercased HOT 6
- Rebasing a duplicated change results in an empty change HOT 1
- Error: invalid or unknown remote ssh hostkey (when using /etc/ssh/ssh_known_hosts) HOT 1
- FR: Allow renaming of existing workspaces HOT 2
- git submodules in colocated repos create weird phantom file creations/deletions HOT 9
- Don't introduce new redundant ancestor merges when auto-rebasing HOT 5
- Abandoning thousands of commits runs out of memory HOT 3
- Could use a full example of how to pass templates to cli args HOT 3
- `jj log --no-graph` shouldn't print multiple revs on same output line HOT 3
- FR: adjust colors for custom rev-sets HOT 2
- SSH login with gpg keycard backed ssh key and pinentry-curses for pin fails
- FR: Gerrit support HOT 2
- FR: Pushing and fetching arbitrary refs HOT 4
- Test failure in the last release (0.21.0) HOT 15
- FR: merge tool edit conflict marker as 3-way HOT 1
- Panic when running `jj st`: `must have one more adds than removes` HOT 2
- JJ seems to ignore configuration on MacOS HOT 10
- FR: empty commit message should be a no-op HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jj.