martinvonz / jj

A Git-compatible VCS that is both simple and powerful
https://martinvonz.github.io/jj/
Apache License 2.0
7.33k stars 242 forks source link

cli: let `jj git push --change` handle large revsets #3924

Closed thoughtpolice closed 2 weeks ago

thoughtpolice commented 2 weeks ago

In a repo of mine I wanted to do something like the following to push all of my leaves to the remote as backup:

jj git push -c 'all:heads(base::) & mine() ~ empty()'

But couldn't, because jj git push doesn't handle large revsets, even though it does handle multiple -c arguments, so I had to work out some pipe-to-xargs command instead.

Checklist

If applicable: