Hello everybody!
It looks like I've found bug in tar.
When used to create archive with option `--exclude-vcs-ignores` tar treats `.gitignore` patterns as shell patterns while they are not.
Consider the following example.
$ tar c --exclude-vcs-ignores -f ../tartest.tar .
$ tar tf ../tartest.tar
./
$ ls -1lA
total 8
1
.2
.git
.gitignore
$ cat .gitignore
.*
Expected result is for `1` to be found in the archive.
In this case git ignores `.2` and `.gitignore` files while tar ignores everything.
`.*` means "ignore everything starting with .". This is not a regex.
It is expected for `--exclude-vcs-ignores` to mimic VCS' ignore logic.
Thank you and keep up the good work!