]> dgit.raspbian.org Git - git-annex.git/commitdiff
improve docs
authorJoey Hess <joeyh@joeyh.name>
Fri, 12 Nov 2021 18:07:29 +0000 (14:07 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 12 Nov 2021 18:08:36 +0000 (14:08 -0400)
I saw a user open a forum post that looked like they had read this man
page, but were unaware of git-annex unlock, and were looking for its
functionality. They later deleted the post, probably when they found
git-annex unlock. Looking at this man page, it was a bit unclear about
the motivation for the command.

Yes, I'm warching... ;-)

doc/git-annex-adjust.mdwn

index 644e9fb2673fdc2081f011a31c19d71433470e83..42ec030a204cc39816dfe023a920d421a679d988 100644 (file)
@@ -16,13 +16,18 @@ 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.
 
+This allows changing how annexed files are handled, without making changes
+to a public branch with commands like `git-annex unlock`.
+
 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 propagate commits from the adjusted branch back to the original branch,
 and to other repositories, as well as to merge in changes from other
-repositories, run `git annex sync`.
+repositories, run `git annex sync`. This will propagate changes that you've
+made such as adding/deleting files, but will not propagate the adjustments
+made by this command.
 
 When in an adjusted branch, using `git merge otherbranch` is often not
 ideal, because merging a non-adjusted branch may lead to unncessary
@@ -117,6 +122,8 @@ and will also propagate commits back to the original branch.
 
 [[git-annex-unlock]](1)
 
+[[git-annex-lock]](1)
+
 [[git-annex-upgrade]](1)
 
 [[git-annex-sync]](1)