forked from git-lfs/git-lfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a man page for git-lfs-post-commit(1) which largely parallels the git-lfs-post-merge(1) one, as they have similar purposes for Git LFS, namely, to ensure all tracked lockable files are marked read-only in the working copy.
- Loading branch information
1 parent
9a8c9bb
commit ae5d5b0
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
git-lfs-post-commit(1) -- Git post-commit hook implementation | ||
================================================================= | ||
|
||
## SYNOPSIS | ||
|
||
`git lfs post-commit` | ||
|
||
## DESCRIPTION | ||
|
||
Responds to Git post-commit events. It makes sure that any files which are | ||
marked as lockable by `git lfs track` are read-only in the working copy, if | ||
not currently locked by the local user. | ||
|
||
Where the `git lfs post-merge` command, which has a similar purpose, must | ||
examine all files in the working copy, `git lfs post-commit` can limit | ||
itself checking only those files which have changed in `HEAD`. It primarily | ||
handles newly added lockable files which have not yet been made read-only. | ||
|
||
## SEE ALSO | ||
|
||
git-lfs-post-merge(1), git-lfs-track(1) | ||
|
||
Part of the git-lfs(1) suite. |