ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli
Michael Gattozzi 3bc361a8b9 cli: add --allow-empty-description flag to push
This commit adds an optional flag to be able to push commits with an
empty description to a remote git repo. While the default behavior is
ideal we might need to interact with a repo that has an empty commit
description in it. I ran into this issue a few weeks ago pushing commits
from an open source repo to an empty repo and had to go back to using
git for that push as I would not want to rewrite the history which was
many many years long just for that.

This flag allows users an escape hatch for pushing empty descriptions
for commits and they're sure that they want that behavior.

This commit adds the flag to the `git push` command and updates the docs
for the command. It also updates the original test to make sure that the
flag works as intended to reject the commit when not set and to allow
the commit when the flag is set.

Closes #2633
2024-06-05 14:58:36 -04:00
..
examples revset: replace ParseState with &RevsetParseContext 2024-06-05 10:39:32 +09:00
src cli: add --allow-empty-description flag to push 2024-06-05 14:58:36 -04:00
testing cli: add a fake code formatter tool for testing 2024-06-04 14:28:21 -05:00
tests cli: add --allow-empty-description flag to push 2024-06-05 14:58:36 -04:00
build.rs
Cargo.toml cli: implement enough of jj fix to run a single tool on all files 2024-06-04 14:28:21 -05:00
LICENSE