e2c8dc6778
Note that the implementation uses replaceFile, so that the actual replacement of the work tree file is atomic. This seems a good property to have! It would be possible for unlock in v6 mode to be run on files that do not have their content present. However, that would be a behavior change from before, and I don't see any immediate need to support it, so I didn't implement it.
33 lines
546 B
Markdown
33 lines
546 B
Markdown
# NAME
|
|
|
|
git-annex lock - undo unlock command
|
|
|
|
# SYNOPSIS
|
|
|
|
git annex lock `[path ...]`
|
|
|
|
# DESCRIPTION
|
|
|
|
Use this to undo an unlock command if you don't want to modify
|
|
the files any longer, or have made modifications you want to discard.
|
|
|
|
# OPTIONS
|
|
|
|
* file matching options
|
|
|
|
The [[git-annex-matching-options]](1)
|
|
can be used to specify files to lock.
|
|
|
|
# SEE ALSO
|
|
|
|
[[git-annex]](1)
|
|
|
|
[[git-annex-add]](1)
|
|
|
|
[[git-annex-unlock]](1)
|
|
|
|
# AUTHOR
|
|
|
|
Joey Hess <id@joeyh.name>
|
|
|
|
Warning: Automatically converted into a man page by mdwn2man. Edit with care.
|