2015-12-04 17:02:56 +00:00
|
|
|
# NAME
|
|
|
|
|
|
|
|
git-annex smudge - git filter driver for git-annex
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
2015-12-04 19:30:06 +00:00
|
|
|
git annex smudge [--clean] file
|
2015-12-04 17:02:56 +00:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
2015-12-04 19:30:06 +00:00
|
|
|
This command lets git-annex be used as a git filter driver which lets
|
|
|
|
annexed files in the git repository to be unlocked at all times, instead
|
|
|
|
of being symlinks.
|
2015-12-04 17:02:56 +00:00
|
|
|
|
2015-12-04 21:57:15 +00:00
|
|
|
When adding a file with `git add`, the annex.largefiles config is
|
|
|
|
consulted to decide if a given file should be added to git as-is,
|
2015-12-16 20:00:41 +00:00
|
|
|
or if its content are large enough to need to use git-annex.
|
2015-12-04 21:57:15 +00:00
|
|
|
|
|
|
|
The git configuration to use this command as a filter driver is as follows.
|
|
|
|
This is normally set up for you by git-annex init, so you should
|
|
|
|
not need to configure it manually.
|
2015-12-04 19:30:06 +00:00
|
|
|
|
|
|
|
[filter "annex"]
|
|
|
|
smudge = git-annex smudge %f
|
2015-12-04 20:14:48 +00:00
|
|
|
clean = git-annex smudge --clean %f
|
2015-12-04 19:30:06 +00:00
|
|
|
|
2015-12-04 21:57:15 +00:00
|
|
|
To make git use that filter driver, it needs to be configured in
|
2016-08-16 15:50:19 +00:00
|
|
|
the `.gitattributes` file or in `.git/info/attributes`. The latter
|
2015-12-04 21:57:15 +00:00
|
|
|
is normally configured when a repository is initialized, with the following
|
|
|
|
contents:
|
2015-12-04 17:02:56 +00:00
|
|
|
|
|
|
|
* filter=annex
|
|
|
|
.* !filter
|
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
[[git-annex]](1)
|
|
|
|
|
|
|
|
# AUTHOR
|
|
|
|
|
|
|
|
Joey Hess <id@joeyh.name>
|
|
|
|
|
|
|
|
Warning: Automatically converted into a man page by mdwn2man. Edit with care.
|