pub struct UserProjectOverrides {
pub approved_commands: Vec<String>,
pub commit_generation: Option<CommitGenerationConfig>,
pub overrides: OverridableConfig,
}Expand description
Per-project overrides in the user’s config file
Stored under [projects."project-id"] in the user’s config.
These are user preferences (not checked into git) that override
the corresponding global settings when set.
§TOML Format
[projects."github.com/user/repo"]
worktree-path = ".worktrees/{{ branch | sanitize }}"
approved-commands = ["npm install", "npm test"]
[projects."github.com/user/repo".commit.generation]
command = "llm -m gpt-4"
[projects."github.com/user/repo".list]
full = true
[projects."github.com/user/repo".merge]
squash = falseFields§
§approved_commands: Vec<String>Commands that have been approved for automatic execution in this project
commit_generation: Option<CommitGenerationConfig>DEPRECATED: Use commit.generation instead.
Per-project commit generation settings (overrides global [commit.generation])
overrides: OverridableConfigPer-project overrides (worktree-path, list, commit, merge, switch, select)
Implementations§
Trait Implementations§
Source§impl Clone for UserProjectOverrides
impl Clone for UserProjectOverrides
Source§fn clone(&self) -> UserProjectOverrides
fn clone(&self) -> UserProjectOverrides
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserProjectOverrides
impl Debug for UserProjectOverrides
Source§impl Default for UserProjectOverrides
impl Default for UserProjectOverrides
Source§fn default() -> UserProjectOverrides
fn default() -> UserProjectOverrides
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserProjectOverrides
impl<'de> Deserialize<'de> for UserProjectOverrides
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for UserProjectOverrides
impl JsonSchema for UserProjectOverrides
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for UserProjectOverrides
impl PartialEq for UserProjectOverrides
Source§impl Serialize for UserProjectOverrides
impl Serialize for UserProjectOverrides
impl StructuralPartialEq for UserProjectOverrides
Auto Trait Implementations§
impl Freeze for UserProjectOverrides
impl RefUnwindSafe for UserProjectOverrides
impl Send for UserProjectOverrides
impl Sync for UserProjectOverrides
impl Unpin for UserProjectOverrides
impl UnsafeUnpin for UserProjectOverrides
impl UnwindSafe for UserProjectOverrides
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more