File: comment_1_8f5878db6dd2a21893cc6b5a1200b010._comment

package info (click to toggle)
git-annex 10.20250721-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 74,484 kB
  • sloc: haskell: 90,982; javascript: 9,103; sh: 1,469; makefile: 213; perl: 137; ansic: 44
file content (16 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2021-04-26T17:13:45Z"
 content="""
git-lfs is a centralized system with a server that can manage the locks.
git-annex is generally not, and so I do not think it's possible to
implement locks of that kind generally, for the same reason git does not
support file locking itself, while contralized VCS systems often do.

However, if you wanted something like git-lfs's behavior of preventing
pushes that modify files locked by another user, it could be
implemented as a pre-receive hook on a centralized git server. You would
only need some way to register the locks to the server, for the pre-receive
hook to check.
"""]]