add: Stage symlinks the same as git add would, even if they are not a link to annexed content.

This commit is contained in:
Joey Hess 2015-07-07 16:15:30 -04:00
parent 772dd88ae9
commit 81ad277a85
5 changed files with 34 additions and 7 deletions

View file

@ -6,3 +6,5 @@ Is there already a good way of adding symlinks in direct mode? If not, I would f
Best regards,
T.
> [[fixed|done]] --[[Joey]]

View file

@ -0,0 +1,15 @@
[[!comment format=mdwn
username="joey"
subject="""comment 3"""
date="2015-07-07T20:02:02Z"
content="""
Recently, `git annex add` started adding files
to git, if annex.largefiles didn't match them.
So, it's possible to use that to add eg, source files. But it currently
skips symlinks (unless they're git-annex symlinks).
What I think makes sense to do is make it also process
symlinks, and always check them into git as-is. So, git-annex add becomes
like git-add except smart about adding large files to the annex.
"""]]