From db048aeafdc0009414e56c1fb28f647f7842ef1b Mon Sep 17 00:00:00 2001 From: Ivor Wanders Date: Tue, 30 Dec 2025 08:19:39 -0500 Subject: [PATCH] Ensure symlinked target directory is ignored. With the trailing slash it will not ignore 'target' if it is a symlink. By removing that symlinked 'target' directories are correctly ignored. The slash at the start ensures that it will not ignore directories called 'target' that may be created in the future that aren't at the root of the repository. This change aligns with the default .gitignore from `cargo init`. Originally discussed in https://github.com/gfx-rs/wgpu/pull/8795#discussion_r2651884828 --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a23fffc26db..179184f5741 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ # Generated by Cargo # will have compiled files and executables -target/ +/target # Include the root lockfile but not the others */Cargo.lock