improve example

This commit is contained in:
Joey Hess 2025-09-16 13:34:54 -04:00
commit c98dc21880
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 14 additions and 3 deletions

View file

@ -39,9 +39,10 @@ repository. So, enable annex.thin with care.
# git annex unlock photo.jpg
# gimp photo.jpg
# git annex add photo.jpg
# git annex lock photo.jpg
# git commit -m "redeye removal"
# git commit photo.jpg -m "redeye removal"
# gimp photo.jpg
# git commit photo.jpg -m "fix oversaturation"
# git annex lock photo.jpg
# OPTIONS

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="joey"
subject="""Re: We dont need a 'git annex lock' after a 'git annex add', right?"""
date="2025-09-16T17:28:49Z"
content="""
Well spotted. `git-annex add` defaults to adding files locked, even when
adding what was an unlocked file before.
I've improved the example.
"""]]