File: git-lfs-post-commit.adoc

package info (click to toggle)
git-lfs 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,808 kB
  • sloc: sh: 21,256; makefile: 507; ruby: 417
file content (27 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
= git-lfs-post-commit(1)

== NAME

git-lfs-post-commit - 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.