add: When adding a dotfile as a non-large file, mention that it's a dotfile

This is to reduce user confusion when their annex.largefiles matches it,
or is not set.

Note that, when annex.dotfiles is set, but a dotfile is not matched by
annex.largefiles, the "non-large file" message will be displayed. That
makes sense because whether the file is a dotfile does not matter with that
configuration.

Also, this slightly optimised the annex.dotfiles path in passing,
by avoiding the slight slowdown caused by the check added in commit
876d5b6c6f in that case.
This commit is contained in:
Joey Hess 2024-11-13 14:09:24 -04:00
parent 876d5b6c6f
commit b94221594b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 24 additions and 19 deletions

View file

@ -62,4 +62,4 @@ How to remedy?
dandi project
> Not a bug, [[done]] --[[Joey]]
> [[fixed|done]] --[[Joey]]

View file

@ -1009,8 +1009,8 @@ repository, using [[git-annex-config]]. See its man page for a list.)
* `annex.addsmallfiles`
Controls whether small files (not matching annex.largefiles)
should be checked into git by `git annex add`. Defaults to true;
Controls whether small files (files not matching annex.largefiles, or
dotfiles) should be checked into git by `git annex add`. Defaults to true;
set to false to instead make small files be skipped.
* `annex.addunlocked`