From: Josef Weidendorfer Date: Sat, 13 Aug 2005 18:31:27 GMT Subject: Re: [PATCH] Added hook in git-receive-pack Message-ID: <200508132031.27668.Josef.Weidendorfer@gmx.de> In-Reply-To: <200507312117.43957.Josef.Weidendorfer@gmx.de> On Sunday 31 July 2005 21:17, Josef Weidendorfer wrote: > Added hook in git-receive-pack Regarding the update hook: In this script, it would be nice to be able to distinguish rebasing/forced setting of a head from a regular fast forwarding. In the first case, I do not want to potentially send a list of all commits starting from project root, which currently can happen. A solution would be to call the hook simply with update refname new_sha1 if this is not a fast forward. The question is if there is a use case for the script to get the old_sha1 even in a rebase situation. So another option would be to call the script with update action refname old_sha1 new_sha1 with action being "fastforward" or "forcedrebase" or similar. Or is there already an easy way to detect the fast-forward situation in the script? Josef