Re: [PATCH 5/5] Teach receive-pack to run pre-receive/post-receive hooks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> writes:

> Can you give a concise explanation of how "pre-receive" differ from the 
> old "update", and how does "post-receive" differ from the old 
> "post-update"?

They are somewhat redundant.  They get everything at once,
unlike update hook.

The old interface is adequate to do the same thing if you
arrange them so that update hook notes which refs (with what old
sha1 value it had) were asked to be updated, and make your
post-update hook (which gets the names of refs) notice if some
of them failed and from what ref a successful update happened.
But getting everything at once is sometimes easier to work
with.


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]