add: When adding a dotfile as a non-large file, mention that it's a dotfile
authorJoey Hess <joeyh@joeyh.name>
Wed, 13 Nov 2024 18:09:24 +0000 (14:09 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 13 Nov 2024 18:09:24 +0000 (14:09 -0400)
commitb94221594bd36d342d6813898560cfb6cb067d8f
tree057b4c518aeddd7d44e23fa887a3e95126059d6b
parent876d5b6c6fed7d540767783eb3d14469f41bd1c2
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
876d5b6c6fed7d540767783eb3d14469f41bd1c2 in that case.
CHANGELOG
Command/Add.hs
Command/AddUrl.hs
Command/Import.hs
doc/bugs/keeps_adding_to_git_even_though_largerthan__61__.mdwn
doc/git-annex.mdwn