diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-02-23 08:15:24 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-02-23 08:15:24 +0000 |
| commit | 84d8f03cf2471d3530f4657055f272474880b6b5 (patch) | |
| tree | 36d1e57526fa9b201315552cada843a357334a55 /src/sub_commands/send.rs | |
| parent | edb7bf7ee2ffbd718b927c5431d3c9fa5305ec06 (diff) | |
feat(push): add `--force` to issue revision
wrapping `send --in-reply-to` unless branch up-to-date
Diffstat (limited to 'src/sub_commands/send.rs')
| -rw-r--r-- | src/sub_commands/send.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sub_commands/send.rs b/src/sub_commands/send.rs index 1ccb1f4..ebe23b1 100644 --- a/src/sub_commands/send.rs +++ b/src/sub_commands/send.rs | |||
| @@ -27,26 +27,26 @@ pub struct SubCommandArgs { | |||
| 27 | #[arg(default_value = "")] | 27 | #[arg(default_value = "")] |
| 28 | /// starting commit (commits since in current branch) or commit range, like | 28 | /// starting commit (commits since in current branch) or commit range, like |
| 29 | /// in `git format-patch` | 29 | /// in `git format-patch` |
| 30 | starting_commit: String, | 30 | pub(crate) starting_commit: String, |
| 31 | #[clap(long)] | 31 | #[clap(long)] |
| 32 | /// nevent or event id of an existing proposal for which this is a new | 32 | /// nevent or event id of an existing proposal for which this is a new |
| 33 | /// version | 33 | /// version |
| 34 | in_reply_to: Option<String>, | 34 | pub(crate) in_reply_to: Option<String>, |
| 35 | /// optional cover letter title | 35 | /// optional cover letter title |
| 36 | #[clap(short, long)] | 36 | #[clap(short, long)] |
| 37 | title: Option<String>, | 37 | pub(crate) title: Option<String>, |
| 38 | #[clap(short, long)] | 38 | #[clap(short, long)] |
| 39 | /// optional cover letter description | 39 | /// optional cover letter description |
| 40 | description: Option<String>, | 40 | pub(crate) description: Option<String>, |
| 41 | #[clap(long)] | 41 | #[clap(long)] |
| 42 | /// branch to get changes from (defaults to head) | 42 | /// branch to get changes from (defaults to head) |
| 43 | from_branch: Option<String>, | 43 | pub(crate) from_branch: Option<String>, |
| 44 | #[clap(long)] | 44 | #[clap(long)] |
| 45 | /// destination branch (defaults to main or master) | 45 | /// destination branch (defaults to main or master) |
| 46 | to_branch: Option<String>, | 46 | pub(crate) to_branch: Option<String>, |
| 47 | /// don't ask about a cover letter | 47 | /// don't ask about a cover letter |
| 48 | #[arg(long, action)] | 48 | #[arg(long, action)] |
| 49 | no_cover_letter: bool, | 49 | pub(crate) no_cover_letter: bool, |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | #[allow(clippy::too_many_lines)] | 52 | #[allow(clippy::too_many_lines)] |