This commit is contained in:
akar1ngo 2025-08-27 00:39:17 +08:00 committed by GitHub
commit bb32cdb12f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 33 additions and 0 deletions

View file

@ -426,6 +426,16 @@ impl GitSettings {
_ => false,
}
}
pub fn inline_blame_share_with_collaborators(&self) -> bool {
match self.inline_blame {
Some(InlineBlameSettings {
share_with_collaborators,
..
}) => share_with_collaborators,
_ => true,
}
}
}
#[derive(Clone, Copy, Debug, Default, Serialize, Deserialize, JsonSchema)]
@ -479,6 +489,11 @@ pub struct InlineBlameSettings {
/// Default: false
#[serde(default)]
pub show_commit_summary: bool,
/// Allow sending blame information to collaborators in shared projects.
///
/// When false, the host will refuse remote blame requests for buffers. Default: true
#[serde(default = "default_true")]
pub share_with_collaborators: bool,
}
fn default_inline_blame_padding() -> u32 {
@ -493,6 +508,7 @@ impl Default for InlineBlameSettings {
padding: default_inline_blame_padding(),
min_column: 0,
show_commit_summary: false,
share_with_collaborators: true,
}
}
}