docs: trim branch API comments

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

View File

@@ -1176,11 +1176,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(|_| {

View File

@@ -1639,8 +1639,7 @@ impl Table {
self.inner.tags().await
}
/// Create a new branch from `from` (a version, tag, or branch) and return
/// a writable, isolated handle scoped to it. `self` is unaffected.
/// Create a new branch from `from` (a version, tag, or branch)
pub async fn create_branch(
&self,
name: &str,