diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-10-29 11:24:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 11:24:20 -0400 |
commit | 47a4fdd208ea31baa22d1203ab4a6fa94be9abde (patch) | |
tree | b463561481261d4585981a136a079e8342bd562c | |
parent | 081eb60299a0f75670f8397e58ed6c05417747b4 (diff) |
Do not reformat submodule diffs under `git add -p` (#756)
Fixes #755
Ref #662
-rw-r--r-- | src/handlers/submodule.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers/submodule.rs b/src/handlers/submodule.rs index 339855e9..4350c561 100644 --- a/src/handlers/submodule.rs +++ b/src/handlers/submodule.rs @@ -25,7 +25,7 @@ impl<'a> StateMachine<'a> { } pub fn handle_submodule_short_line(&mut self) -> std::io::Result<bool> { - if !self.test_submodule_short_line() { + if !self.test_submodule_short_line() || self.config.color_only { return Ok(false); } if let Some(commit) = get_submodule_short_commit(&self.line) { |