Skip to content

Commit 429682d

Browse files
committed
fix: don't use th in git rev parse -e unconditionally, use . instead. (#1023)
That way it shouldn't be grammatically incorrect.
1 parent c270f78 commit 429682d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitoxide-core/src/repository/revision/explain.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ impl<'a> delegate::Navigate for Explain<'a> {
129129
self.out,
130130
"{}",
131131
match kind {
132-
Traversal::NthAncestor(no) => format!("Traverse to the {no}th ancestor of revision named '{name}'"),
133-
Traversal::NthParent(no) => format!("Select the {no}th parent of revision named '{name}'"),
132+
Traversal::NthAncestor(no) => format!("Traverse to the {no}. ancestor of revision named '{name}'"),
133+
Traversal::NthParent(no) => format!("Select the {no}. parent of revision named '{name}'"),
134134
}
135135
)
136136
.ok()

0 commit comments

Comments
 (0)