gitignore: anchor all ignored names
commit5556332aba80c0579244c4458d3e35f13badd5ed
authorMichael Tokarev <mjt@tls.msk.ru>
Tue, 11 Feb 2014 10:22:32 +0000 (11 14:22 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 15 Feb 2014 12:10:25 +0000 (15 16:10 +0400)
tree3700afe1618302e1651e148244d8c0389b919083
parentb33276a7a8224de8f1b2adbf03eede36d63e1c33
gitignore: anchor all ignored names

by default, patterns/names in .gitignore are applied
recursively to all subdirectories.  So any name mentioned
in .gitignore is ignored in all subdirectores.  This is good
for, say. object files (*.o), but not good for particular
names which should be ignored only in one directory.  For
example, qemu-img.1 file is generated in the top directory,
and it should be ignored only there, not in some subdir.

At first, this might not matter much, but we have lots of
examples already where it actually does not help at all.
For example, top-level .gitignore ignores a file/dir named
"patches" (which is very questionable by itself), but it
is applied recursively, so git also ignores, for example,
debian/patches/ which should not be ignored.

So anchor all the names where appropriate.  .gitignore
should be cleaned up further, which will be addressed in
a subsequent patch.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
.gitignore