encourage use of import from directory special remote rather than legacy interface
This commit is contained in:
parent
c8355a7416
commit
6f35b576d7
3 changed files with 14 additions and 10 deletions
|
@ -39,7 +39,7 @@ cmd :: Command
|
||||||
cmd = notBareRepo $
|
cmd = notBareRepo $
|
||||||
withGlobalOptions [jobsOption, jsonOptions, fileMatchingOptions] $
|
withGlobalOptions [jobsOption, jsonOptions, fileMatchingOptions] $
|
||||||
command "import" SectionCommon
|
command "import" SectionCommon
|
||||||
"import files from elsewhere into the repository"
|
"add a tree of files to the repository"
|
||||||
(paramPaths ++ "|BRANCH[:SUBDIR]")
|
(paramPaths ++ "|BRANCH[:SUBDIR]")
|
||||||
(seek <$$> optParser)
|
(seek <$$> optParser)
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
git-annex import - add files from a non-versioned directory or a special remote
|
git-annex import - add a tree of files to the repository
|
||||||
|
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
|
|
||||||
git annex import `[path ...]` | git annex import --from remote branch[:subdir]
|
git annex import --from remote branch[:subdir] | `[path ...]`
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
|
||||||
This command is a way to import files from elsewhere into your git-annex
|
This command is a way to import a tree of files from elsewhere into your
|
||||||
repository. It can import files from a directory into your repository,
|
git-annex repository. It can import files from a git-annex special remote,
|
||||||
or it can import files from a git-annex special remote.
|
or from a directory.
|
||||||
|
|
||||||
# IMPORTING FROM A SPECIAL REMOTE
|
# IMPORTING FROM A SPECIAL REMOTE
|
||||||
|
|
||||||
|
@ -30,7 +30,8 @@ remote.
|
||||||
|
|
||||||
You can only import from special remotes that were configured with
|
You can only import from special remotes that were configured with
|
||||||
`importtree=yes` when set up with [[git-annex-initremote]](1). Only some
|
`importtree=yes` when set up with [[git-annex-initremote]](1). Only some
|
||||||
kinds of special remotes will let you configure them this way.
|
kinds of special remotes will let you configure them this way. A perhaps
|
||||||
|
non-exhastive list is the directory, s3, and adb special remotes.
|
||||||
|
|
||||||
To import from a special remote, you must specify the name of a branch.
|
To import from a special remote, you must specify the name of a branch.
|
||||||
A corresponding remote tracking branch will be updated by `git annex
|
A corresponding remote tracking branch will be updated by `git annex
|
||||||
|
@ -88,6 +89,10 @@ things that depend on the key. Preferred content expressions containing
|
||||||
When run with a path, `git annex import` moves files from somewhere outside
|
When run with a path, `git annex import` moves files from somewhere outside
|
||||||
the git working copy, and adds them to the annex.
|
the git working copy, and adds them to the annex.
|
||||||
|
|
||||||
|
This is a legacy interface. It is still supported, but please consider
|
||||||
|
switching to importing from a directory special remote instead, using the
|
||||||
|
interface documented above.
|
||||||
|
|
||||||
Individual files to import can be specified. If a directory is specified,
|
Individual files to import can be specified. If a directory is specified,
|
||||||
the entire directory is imported.
|
the entire directory is imported.
|
||||||
|
|
||||||
|
|
|
@ -146,10 +146,9 @@ subdirectories).
|
||||||
|
|
||||||
See [[git-annex-rmurl]](1) for details.
|
See [[git-annex-rmurl]](1) for details.
|
||||||
|
|
||||||
* `import [path ...]`
|
* `import --from remote branch[:subdir] | [path ...]`
|
||||||
|
|
||||||
Add files from a non-version-controlled directory or a
|
Add a tree of files to the repository.
|
||||||
special remote into the annex.
|
|
||||||
|
|
||||||
See [[git-annex-import]](1) for details.
|
See [[git-annex-import]](1) for details.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue