diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-08-09 02:38:12 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-08-10 01:00:16 -0700 |
commit | d47eed3272311acf16f136c49b0bb341c9a6e39c (patch) | |
tree | 9b7484f57909e1cac47e464b67296ec243252110 /ppc | |
parent | b767c792fa202539cfb9bba36f46c62bcbf7c987 (diff) | |
download | git-d47eed3272311acf16f136c49b0bb341c9a6e39c.tar.gz git-d47eed3272311acf16f136c49b0bb341c9a6e39c.tar.xz |
Teach the update-paranoid to look at file differences
In some applications of the update hook a user may be allowed to
modify a branch, but only if the file level difference is also an
allowed change. This is the commonly requested feature of allowing
users to modify only certain files.
A new repository.*.allow syntax permits granting the three basic
file level operations:
A: file is added relative to the other tree
M: file exists in both trees, but its SHA-1 or mode differs
D: file is removed relative to the other tree
on a per-branch and path-name basis. The user must also have a
branch level allow line already granting them access to create,
rewind or update (CRU) that branch before the hook will consult
any file level rules.
In order for a branch change to succeed _all_ files that differ
relative to some base (by default the old value of this branch,
but it can also be any valid tree-ish) must be allowed by file
level allow rules. A push is rejected if any diff exists that
is not covered by at least one allow rule.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ppc')
0 files changed, 0 insertions, 0 deletions