pub enum ParseWarning {
SuspiciousName {
name: String,
},
CommandLineOption {
var: String,
value: String,
},
MultipleConfig {
name: String,
option: String,
},
InvalidIgnore {
name: String,
value: String,
},
InvalidUpdate {
name: String,
},
}Expand description
A diagnostic emitted while parsing .gitmodules, mirroring git’s
warning(...) calls in parse_config. Surfacing them lets a consumer
reproduce git’s stderr without this crate owning an output channel.
Variants§
SuspiciousName
warning(_("ignoring suspicious submodule name: %s"), ...).
CommandLineOption
warning(_("ignoring '%s' which may be interpreted as a command-line option: %s"), ...).
MultipleConfig
warning("...multiple configurations found for 'submodule.%s.%s'...").
InvalidIgnore
warning("Invalid parameter '%s' for config option 'submodule.%s.ignore'").
InvalidUpdate
git die(_("invalid value for '%s'")) while parsing
submodule.<name>.update — either an unrecognized value or a !command
(which is forbidden from .gitmodules for security). This crate has no
fatal channel, so it surfaces here; the submodule init/update path
turns it into the fatal git behavior.
Trait Implementations§
Source§impl Clone for ParseWarning
impl Clone for ParseWarning
Source§fn clone(&self) -> ParseWarning
fn clone(&self) -> ParseWarning
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more