Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Use default
Lorenz Leutgeb committed 6 months ago
commit 966b1a33ea00eb552bd11583ae7dd7bce0b1bc35
parent 5e5b61b2109bdd140adbd49b0f3f7150861252f4
1 file changed +10 -4
modified crates/radicle-cli/src/commands/patch/args.rs
@@ -552,11 +552,17 @@ pub(super) struct ReviewArgs {
    #[arg(long, short, group = "by-hunk", conflicts_with = "delete")]
    patch: bool,

-
    /// Generate diffs with <N> lines of context instead of the usual three
+
    /// Generate diffs with <N> lines of context
    ///
    /// This operation is obsolete
-
    #[arg(long, short = 'U', value_name = "N", requires = "by-hunk")]
-
    unified: Option<usize>,
+
    #[arg(
+
        long,
+
        short = 'U',
+
        value_name = "N",
+
        requires = "by-hunk",
+
        default_value_t = 3
+
    )]
+
    unified: usize,

    /// Only review a specific hunk
    ///
@@ -602,7 +608,7 @@ impl ReviewArgs {
            };
            return review::Operation::Review(review::ReviewOptions {
                by_hunk: true,
-
                unified: self.unified.unwrap_or(3),
+
                unified: self.unified,
                hunk: self.hunk,
                verdict,
            });