cli git push: short alias -N for --allow-new

I commonly end up typing it. It's long and hard to complete
This commit is contained in:
Ilya Grigoriev 2024-11-22 20:12:38 -08:00
parent 472fd35ff1
commit 118072a9ac
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ pub struct GitPushArgs {
/// Allow pushing new bookmarks
///
/// Newly-created remote bookmarks will be tracked automatically.
#[arg(long, conflicts_with = "what")]
#[arg(long, short = 'N', conflicts_with = "what")]
allow_new: bool,
/// Allow pushing commits with empty descriptions
#[arg(long)]

View file

@ -1174,7 +1174,7 @@ Before the command actually moves, creates, or deletes a remote bookmark, it mak
* `--deleted` — Push all deleted bookmarks
Only tracked bookmarks can be successfully deleted on the remote. A warning will be printed if any untracked bookmarks on the remote correspond to missing local bookmarks.
* `--allow-new` — Allow pushing new bookmarks
* `-N`, `--allow-new` — Allow pushing new bookmarks
Newly-created remote bookmarks will be tracked automatically.
* `--allow-empty-description` — Allow pushing commits with empty descriptions