Skip to content

Commit ca52341

Browse files
authored
Apply suggestions from code review
1 parent 23ac020 commit ca52341

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

gitoxide-core/src/repository/diff.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ pub fn file(
169169
let algorithm = match outcome.operation {
170170
Operation::InternalDiff { algorithm } => algorithm,
171171
Operation::ExternalCommand { .. } => {
172-
// `unreachable!` is also used in [`Platform::lines()`](gix::object::blob::diff::Platform::lines()).
173172
unreachable!("We disabled that")
174173
}
175174
Operation::SourceOrDestinationIsBinary => {

src/plumbing/options/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,10 @@ pub mod diff {
516516
},
517517
/// Diff two versions of a file.
518518
File {
519-
/// A rev-spec representing the 'before' or old tree.
519+
/// A rev-spec representing the 'before' or old state of the file, like '@~100:file'
520520
#[clap(value_parser = crate::shared::AsBString)]
521521
old_revspec: BString,
522-
/// A rev-spec representing the 'after' or new tree.
522+
/// A rev-spec representing the 'after' or new state of the file, like ':file'
523523
#[clap(value_parser = crate::shared::AsBString)]
524524
new_revspec: BString,
525525
},

0 commit comments

Comments
 (0)