]> git.lizzy.rs Git - rust.git/commitdiff
.gitignore: Don't ignore a file that exists in the repository
authorJosh Triplett <josh@joshtriplett.org>
Mon, 16 Dec 2019 07:17:06 +0000 (23:17 -0800)
committerJosh Triplett <josh@joshtriplett.org>
Mon, 16 Dec 2019 07:17:06 +0000 (23:17 -0800)
.gitignore should not ignore files that exist in the repository. The
ignore of .cargo applies to the committed .cargo directory used in an
example:

$ git ls-files --exclude-standard --ignored
src/test/run-make/thumb-none-qemu/example/.cargo/config

Explicitly un-ignore that file.

.gitignore

index 487867c375d4529a0a7f0e36c6b2207665e174c6..1428ee6c9bc234acc1cb52d25f54afdcdd5f145c 100644 (file)
@@ -55,5 +55,6 @@ config.mk
 config.stamp
 Session.vim
 .cargo
+!/src/test/run-make/thumb-none-qemu/example/.cargo
 no_llvm_build
 # Before adding new lines, see the comment at the top.