File: git-annex-pre-commit.mdwn

package info (click to toggle)
git-annex 7.20190129-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 56,292 kB
  • sloc: haskell: 59,105; sh: 1,255; makefile: 225; perl: 136; ansic: 44
file content (31 lines) | stat: -rw-r--r-- 691 bytes parent folder | download
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
28
29
30
31
# NAME

git-annex pre-commit - run by git pre-commit hook

# SYNOPSIS

git annex pre-commit `[path ...]`

# DESCRIPTION

This is meant to be called from git's pre-commit hook. `git annex init`
automatically creates a pre-commit hook using this.

Fixes up symlinks that are staged as part of a commit, to ensure they
point to annexed content.

When in a view, updates metadata to reflect changes
made to files in the view.

When in a repository that has not been upgraded to v7, 
also handles injecting changes to unlocked files into the annex. 

# SEE ALSO

[[git-annex]](1)

# AUTHOR

Joey Hess <id@joeyh.name>

Warning: Automatically converted into a man page by mdwn2man. Edit with care.