import: Check gitignores when importing trees from special remotes

It seemed best to do this, for consistency with every other way files can
get into a git-annex repo. Although it's just a bit strange that a local
.gitignore file affects the pseudo-commits made for the remote that's
imported from.

This commit was sponsored by Brett Eisenberg on Patreon.
This commit is contained in:
Joey Hess 2020-09-30 10:41:59 -04:00
parent 0033e08193
commit c56efbbdb6
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 46 additions and 29 deletions

View file

@ -72,6 +72,9 @@ to tell it what branch to track. For example:
git config remote.myremote.annex-tracking-branch master
git annex sync --content
Any files that are gitignored will not be included in the import,
but will be left on the remote.
When the special remote has a preferred content expression set by
[[git-annex-wanted]](1), it will be honored when importing from it.
Files that are not preferred content of the remote will not be
@ -166,10 +169,6 @@ and `--reinject-duplicates` documentation below.
Also, causes .gitignore to not take effect when adding files.
* `--no-check-gitignore`
Add gitignored files.
* file matching options
Many of the [[git-annex-matching-options]](1)
@ -186,6 +185,10 @@ and `--reinject-duplicates` documentation below.
Setting this to "cpus" will run one job per CPU core.
* `--no-check-gitignore`
Add gitignored files.
* `--json`
Enable JSON output. This is intended to be parsed by programs that use