From 0660a9e85529a3362589ccccf30b966e79cd2d67 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Fri, 19 Jun 2020 21:55:38 -0700 Subject: [PATCH] ignore a couple extra "target" directories Crates within a workspace aren't supposed to have their own "target" directories. But yet these directories appear when I edit files with vim and YouCompleteMe. Ignoring them makes tools like "rg" more pleasant to use. --- .gitignore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 77f85e2..7e4a920 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,13 @@ # will have compiled files and executables /target +# YouCompleteMe + its bundled RLS appear to create target directories within +# the crate paths, contrary to the documentation of how workspaces work. +# (As of https://github.com/ycm-core/YouCompleteMe.git f9906f8, +# which pulls in rls from nightly-2020-04-17.) +/yaserde/target +/yaserde_derive/target + # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries # More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock Cargo.lock