Skip to content

Commit 4661a7b

Browse files
committed
Rename range to ranges
1 parent 9284d07 commit 4661a7b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

gix-blame/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ pub struct Options {
144144
/// The algorithm to use for diffing.
145145
pub diff_algorithm: gix_diff::blob::Algorithm,
146146
/// The ranges to blame in the file.
147-
pub range: BlameRanges,
147+
pub ranges: BlameRanges,
148148
/// Don't consider commits before the given date.
149149
pub since: Option<gix_date::Time>,
150150
}

gix-blame/tests/blame.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ macro_rules! mktest {
194194
format!("{}.txt", $case).as_str().into(),
195195
gix_blame::Options {
196196
diff_algorithm: gix_diff::blob::Algorithm::Histogram,
197-
range: BlameRanges::default(),
197+
ranges: BlameRanges::default(),
198198
since: None,
199199
},
200200
)?
@@ -265,7 +265,7 @@ fn diff_disparity() {
265265
format!("{case}.txt").as_str().into(),
266266
gix_blame::Options {
267267
diff_algorithm: gix_diff::blob::Algorithm::Histogram,
268-
range: BlameRanges::default(),
268+
ranges: BlameRanges::default(),
269269
since: None,
270270
},
271271
)
@@ -297,7 +297,7 @@ fn since() {
297297
"simple.txt".into(),
298298
gix_blame::Options {
299299
diff_algorithm: gix_diff::blob::Algorithm::Histogram,
300-
range: BlameRanges::default(),
300+
ranges: BlameRanges::default(),
301301
since: Some(gix_date::parse("2025-01-31", None).unwrap()),
302302
},
303303
)
@@ -332,7 +332,7 @@ mod blame_ranges {
332332
"simple.txt".into(),
333333
gix_blame::Options {
334334
diff_algorithm: gix_diff::blob::Algorithm::Histogram,
335-
range: BlameRanges::from_range(1..=2),
335+
ranges: BlameRanges::from_range(1..=2),
336336
since: None,
337337
},
338338
)
@@ -368,7 +368,7 @@ mod blame_ranges {
368368
"simple.txt".into(),
369369
gix_blame::Options {
370370
diff_algorithm: gix_diff::blob::Algorithm::Histogram,
371-
range: ranges,
371+
ranges: ranges,
372372
since: None,
373373
},
374374
)
@@ -401,7 +401,7 @@ mod blame_ranges {
401401
"simple.txt".into(),
402402
gix_blame::Options {
403403
diff_algorithm: gix_diff::blob::Algorithm::Histogram,
404-
range: ranges,
404+
ranges: ranges,
405405
since: None,
406406
},
407407
)

src/plumbing/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ pub fn main() -> Result<()> {
15781578
&file,
15791579
gix::blame::Options {
15801580
diff_algorithm,
1581-
range: gix::blame::BlameRanges::from_ranges(ranges),
1581+
ranges: gix::blame::BlameRanges::from_ranges(ranges),
15821582
since,
15831583
},
15841584
out,

0 commit comments

Comments
 (0)