author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 26 May 2008 02:17:57 +0000 (22:17 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 26 May 2008 03:29:30 +0000 (20:29 -0700) | ||
commit | 97561fff3263add59ec25207a0c5a635b28ce9b9 | |
tree | c1dff2b66a00242996416d163840e6aa0b7bc252 | tree | snapshot |
parent | 48ded91674604c9756d53a7e657da0196795136f | commit | diff |
Don't diff empty tree on branch creation in paranoid update hook
Listing all files in a branch during branch creation is silly;
the user's file-level ACLs probably don't mean anything at this
point. We now treat the base case of 0{40} as an empty diff,
as this happens only when the user is creating the branch and
there are file level ACLs that diff against the old value of
the branch.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Listing all files in a branch during branch creation is silly;
the user's file-level ACLs probably don't mean anything at this
point. We now treat the base case of 0{40} as an empty diff,
as this happens only when the user is creating the branch and
there are file level ACLs that diff against the old value of
the branch.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/hooks/update-paranoid | diff | blob | history |