Merge branch 'master' of ssh://git-annex.branchable.com
This commit is contained in:
commit
a551add868
7 changed files with 98 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
[[!comment format=mdwn
|
||||
username="http://joeyh.name/"
|
||||
ip="209.250.56.54"
|
||||
subject="comment 1"
|
||||
date="2014-10-06T15:30:54Z"
|
||||
content="""
|
||||
git-annex is behaving as expected here. The broken symlink allows you to run `git annex get` on it to get the file content back into the repository, or `git mv` to rename the file even though its content is not present, etc.
|
||||
|
||||
You can probably accomplish what you want by using git branches. You want a branch for repo2 that has all the files, and a branch for repo1 that has only the files in repo1. git-annex doesn't maintain such branches for you, but you can probably come up with a way to create such branches (`git annex find` will be useful when scripting up a solution).
|
||||
|
||||
Or you can adopt the approach the git-annex assistant uses for archived files -- a archive/ directory, where files are moved when they're no longer wanted in the local system, so that their symlinks don't clutter up the view, while still being easily accessible when the time comes to pull something out of the archive.
|
||||
"""]]
|
|
@ -0,0 +1,16 @@
|
|||
[[!comment format=mdwn
|
||||
username="http://joeyh.name/"
|
||||
ip="209.250.56.54"
|
||||
subject="comment 1"
|
||||
date="2014-10-06T15:36:54Z"
|
||||
content="""
|
||||
If you can configure `annex.largefiles` to match only binary files, then `git annex add` will respect it, and only add those files.
|
||||
|
||||
For example, if you were working on a game written in C, and wanted to use git-annex only for the game art, but not the source code, you could configure it:
|
||||
|
||||
git config annex.largefiles 'largerthan=100kb and not (include=*.c or include=*.h)'
|
||||
|
||||
This doesn't currently support looking at the file content to determine eg, its MIME type. That's been suggested as an added feature before.
|
||||
|
||||
More simply, if you `git add` the non-binary files yourself first, `git annex add` will skip over those files and only add the other files.
|
||||
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue