From 1f37879649070270aafd6e5f5cf183c9eb82fb91 Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Mon, 2 Jan 2023 10:53:30 +0100 Subject: [PATCH] gitignore: Support symbolic link for target directory --- .gitignore | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 04f38a98..621c6742 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ # Generated by Cargo -# will have compiled files and executables -**/target/ +# - will have compiled files and executables +# - without a trailing slash to allow using a symbolic link +# for out-of-tree builds on a separate volume +**/target # These are backup files generated by rustfmt **/*.rs.bk