mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-09 07:04:02 +00:00
Tweak the uncommitted file rules for git-fmt
This commit is contained in:
parent
4d2ed86611
commit
e8bc2bf966
@ -97,7 +97,7 @@ fn uncommitted_files() -> Vec<String> {
|
||||
cmd.arg("--exclude-standard");
|
||||
let output = cmd.output().expect("Couldn't execute Git");
|
||||
let stdout = String::from_utf8_lossy(&output.stdout);
|
||||
stdout.lines().map(|s| s.to_owned()).collect()
|
||||
stdout.lines().filter(|s| s.ends_with(".rs")).map(|s| s.to_owned()).collect()
|
||||
}
|
||||
|
||||
fn check_uncommitted() {
|
||||
|
Loading…
Reference in New Issue
Block a user