Skip to content

Commit 66e98ec

Browse files
committed
docs(git): 补齐多仓库推送预览两个公开字段的文档注释
#74 合入的 PreviewResponse.repositories 与 RepositoryPush.state 没有文档注释, Rust Core CI 的 Check comments(rustdoc -D missing-docs)在 PR 覆盖到 lithe-git 时失败。
1 parent 1b9adc5 commit 66e98ec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎rust/crates/git/src/workspace_push.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ fn default_limit() -> usize {
5656
#[serde(rename_all = "camelCase")]
5757
/// Every bound repository in push order.
5858
pub struct PreviewResponse {
59+
/// The bound repositories, submodules before the repositories that contain them.
5960
pub repositories: Vec<RepositoryPush>,
6061
}
6162

@@ -83,6 +84,7 @@ pub enum PushState {
8384
pub struct RepositoryPush {
8485
/// The repository's binding ID.
8586
pub id: String,
87+
/// Whether the repository can push, and why not.
8688
pub state: PushState,
8789
/// Short name of the checked-out branch; absent when HEAD is detached or the
8890
/// repository could not be read.

0 commit comments

Comments
 (0)