docs: trim branch API comments

This commit is contained in:
Brendan Clement
2026-06-03 10:07:57 -07:00
parent bf5f6844ac
commit bcd38512cf
2 changed files with 1 additions and 6 deletions

View File

@@ -1172,11 +1172,7 @@ impl Branches {
from_ref: Option<String>,
from_version: Option<i64>,
) -> napi::Result<Table> {
// "main" and None are two spellings of the root branch; normalize so
// from_ref = "main" behaves identically to the default.
let from_ref = from_ref.filter(|b| b != "main");
// Reject a negative version up front; `as u64` would silently wrap it
// into a huge version number.
let from_version = from_version
.map(|v| {
u64::try_from(v).map_err(|_| {