docs for git-annex adjust
This commit is contained in:
parent
1df62b43d1
commit
4c9ca98769
5 changed files with 71 additions and 0 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -1,5 +1,7 @@
|
||||||
git-annex (6.20160319) UNRELEASED; urgency=medium
|
git-annex (6.20160319) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* adjust --unlock: Enters an adjusted branch in which all annexed files
|
||||||
|
are unlocked. The v6 equivilant of direct mode, but much cleaner!
|
||||||
* ddar remote: fix ssh calls
|
* ddar remote: fix ssh calls
|
||||||
Thanks, Robie Basak
|
Thanks, Robie Basak
|
||||||
|
|
||||||
|
|
50
doc/git-annex-adjust.mdwn
Normal file
50
doc/git-annex-adjust.mdwn
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
# NAME
|
||||||
|
|
||||||
|
git-annex adjust - enter an adjusted branch
|
||||||
|
|
||||||
|
# SYNOPSIS
|
||||||
|
|
||||||
|
git annex adjust --unlock`
|
||||||
|
|
||||||
|
# DESCRIPTION
|
||||||
|
|
||||||
|
Enters an adjusted form of the current branch. The annexed files will
|
||||||
|
be treated differently. For example with --unlock all annexed files will
|
||||||
|
be unlocked.
|
||||||
|
|
||||||
|
The adjusted branch will have a name like "adjusted/master(unlocked)".
|
||||||
|
Since it's a regular git branch, you can use `git checkout` to switch
|
||||||
|
back to the original branch at any time.
|
||||||
|
|
||||||
|
While in the adjusted branch, you can use git-annex and git commands as
|
||||||
|
usual. Any commits that you make will initially only be made to the
|
||||||
|
adjusted branch.
|
||||||
|
|
||||||
|
To propigate changes from the adjusted branch back to the original branch,
|
||||||
|
and to other repositories, as well as to merge in changes from other
|
||||||
|
repositories, use `git annex sync`.
|
||||||
|
|
||||||
|
This command can only be used in a v6 git-annex repository.
|
||||||
|
|
||||||
|
# OPTIONS
|
||||||
|
|
||||||
|
* `--unlock`
|
||||||
|
|
||||||
|
Unlock all annexed files in the adjusted branch. This allows
|
||||||
|
annexed files to be modified.
|
||||||
|
|
||||||
|
# SEE ALSO
|
||||||
|
|
||||||
|
[[git-annex]](1)
|
||||||
|
|
||||||
|
[[git-annex-unlock]](1)
|
||||||
|
|
||||||
|
[[git-annex-upgrade]](1)
|
||||||
|
|
||||||
|
[[git-annex-sync]](1)
|
||||||
|
|
||||||
|
# AUTHOR
|
||||||
|
|
||||||
|
Joey Hess <id@joeyh.name>
|
||||||
|
|
||||||
|
Warning: Automatically converted into a man page by mdwn2man. Edit with care.
|
|
@ -20,6 +20,8 @@ commands.
|
||||||
Note that the direct mode/indirect mode distinction is removed in v6
|
Note that the direct mode/indirect mode distinction is removed in v6
|
||||||
git-annex repositories. In such a repository, you can
|
git-annex repositories. In such a repository, you can
|
||||||
use [[git-annex-unlock]](1) to make a file's content be directly present.
|
use [[git-annex-unlock]](1) to make a file's content be directly present.
|
||||||
|
You can also use [[git-annex-adjust]](1) to enter a branch where all
|
||||||
|
annexed files are unlocked, which is similar to the old direct mode.
|
||||||
|
|
||||||
# SEE ALSO
|
# SEE ALSO
|
||||||
|
|
||||||
|
@ -29,6 +31,8 @@ use [[git-annex-unlock]](1) to make a file's content be directly present.
|
||||||
|
|
||||||
[[git-annex-unlock]](1)
|
[[git-annex-unlock]](1)
|
||||||
|
|
||||||
|
[[git-annex-adjust]](1)
|
||||||
|
|
||||||
# AUTHOR
|
# AUTHOR
|
||||||
|
|
||||||
Joey Hess <id@joeyh.name>
|
Joey Hess <id@joeyh.name>
|
||||||
|
|
|
@ -295,6 +295,13 @@ subdirectories).
|
||||||
|
|
||||||
See [[git-annex-indirect]](1) for details.
|
See [[git-annex-indirect]](1) for details.
|
||||||
|
|
||||||
|
* `adjust`
|
||||||
|
|
||||||
|
Switches a repository to use an adjusted branch, which can automatically
|
||||||
|
unlock all files, etc.
|
||||||
|
|
||||||
|
See [[git-annex-adjust]](1) for details.
|
||||||
|
|
||||||
# REPOSITORY MAINTENANCE COMMANDS
|
# REPOSITORY MAINTENANCE COMMANDS
|
||||||
|
|
||||||
* `fsck [path ...]`
|
* `fsck [path ...]`
|
||||||
|
|
|
@ -95,6 +95,8 @@ mode is used. To make them always use unlocked mode, run:
|
||||||
`git config annex.addunlocked true`
|
`git config annex.addunlocked true`
|
||||||
"""]]
|
"""]]
|
||||||
|
|
||||||
|
## mixing locked and unlocked files
|
||||||
|
|
||||||
A v6 repository can contain both locked and unlocked files. You can switch
|
A v6 repository can contain both locked and unlocked files. You can switch
|
||||||
a file back and forth using the `git annex lock` and `git annex unlock`
|
a file back and forth using the `git annex lock` and `git annex unlock`
|
||||||
commands. This changes what's stored in git between a git-annex symlink
|
commands. This changes what's stored in git between a git-annex symlink
|
||||||
|
@ -102,6 +104,12 @@ commands. This changes what's stored in git between a git-annex symlink
|
||||||
the repository in locked mode, use `git annex add`; to add a file in
|
the repository in locked mode, use `git annex add`; to add a file in
|
||||||
unlocked mode, use `git add`.
|
unlocked mode, use `git add`.
|
||||||
|
|
||||||
|
If you want to mostly keep files locked, but be able to locally switch
|
||||||
|
to having them all unlocked, you can do so using `git annex adjust
|
||||||
|
--unlock`. See [[git-annex-adjust]] for details. This is particularly
|
||||||
|
useful when using filesystems like FAT, and OS's like Windows that don't
|
||||||
|
support symlinks.
|
||||||
|
|
||||||
## using less disk space
|
## using less disk space
|
||||||
|
|
||||||
Unlocked files are handy, but they have one significant disadvantage
|
Unlocked files are handy, but they have one significant disadvantage
|
||||||
|
|
Loading…
Reference in a new issue