diff options
Diffstat (limited to 'crates/tools/src/bin/pre-commit.rs')
-rw-r--r-- | crates/tools/src/bin/pre-commit.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/tools/src/bin/pre-commit.rs b/crates/tools/src/bin/pre-commit.rs index ca1909479..bae3b26d3 100644 --- a/crates/tools/src/bin/pre-commit.rs +++ b/crates/tools/src/bin/pre-commit.rs | |||
@@ -14,13 +14,14 @@ fn update_staged() -> Result<()> { | |||
14 | let root = project_root(); | 14 | let root = project_root(); |
15 | let output = Command::new("git") | 15 | let output = Command::new("git") |
16 | .arg("diff") | 16 | .arg("diff") |
17 | .arg("--diff-filter=MAR") | ||
17 | .arg("--name-only") | 18 | .arg("--name-only") |
18 | .arg("--cached") | 19 | .arg("--cached") |
19 | .current_dir(&root) | 20 | .current_dir(&root) |
20 | .output()?; | 21 | .output()?; |
21 | if !output.status.success() { | 22 | if !output.status.success() { |
22 | bail!( | 23 | bail!( |
23 | "`git diff --name-only --cached` exited with {}", | 24 | "`git diff --diff-filter=MAR --name-only --cached` exited with {}", |
24 | output.status | 25 | output.status |
25 | ); | 26 | ); |
26 | } | 27 | } |