mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-18 18:27:38 +00:00
cli: git: mention git.private-commits in --allow-private help text
Since the set is empty by default, --allow-private is noop unless the private revset is configured by user. Let's clarify that.
This commit is contained in:
parent
d0f44e8350
commit
d00c02fb07
2 changed files with 6 additions and 0 deletions
|
@ -131,6 +131,10 @@ pub struct GitPushArgs {
|
|||
#[arg(long)]
|
||||
allow_empty_description: bool,
|
||||
/// Allow pushing commits that are private
|
||||
///
|
||||
/// The set of private commits can be configured by the
|
||||
/// `git.private-commits` setting. The default is `none()`, meaning all
|
||||
/// commits are eligible to be pushed.
|
||||
#[arg(long)]
|
||||
allow_private: bool,
|
||||
/// Push bookmarks pointing to these commits (can be repeated)
|
||||
|
|
|
@ -1173,6 +1173,8 @@ Before the command actually moves, creates, or deletes a remote bookmark, it mak
|
|||
Newly-created remote bookmarks will be tracked automatically.
|
||||
* `--allow-empty-description` — Allow pushing commits with empty descriptions
|
||||
* `--allow-private` — Allow pushing commits that are private
|
||||
|
||||
The set of private commits can be configured by the `git.private-commits` setting. The default is `none()`, meaning all commits are eligible to be pushed.
|
||||
* `-r`, `--revisions <REVSETS>` — Push bookmarks pointing to these commits (can be repeated)
|
||||
* `-c`, `--change <REVSETS>` — Push this commit by creating a bookmark based on its change ID (can be repeated)
|
||||
|
||||
|
|
Loading…
Reference in a new issue