{"thread":{"id":"33213","subject":"git branch based hook desigh","startedAt":"2013-03-18T04:27:51Z","lastAt":"2013-03-20T13:46:32Z","messageCount":2,"participants":["Joydeep Bakshi","Magnus Bäck"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"211545","messageId":"148C5E2E-8FD6-4686-A009-57D1F403C808@infoservices.in","threadId":"33213","inReplyTo":null,"subject":"git branch based hook desigh","fromName":"Joydeep Bakshi","fromEmail":"joydeep.bakshi@infoservices.in","sentAt":"2013-03-18T04:27:51Z","receivedAt":"2013-03-18T04:27:51Z","isPatch":false,"sender":{"key":"joydeep.bakshi@infoservices.in","avatar":null},"body":"Hello list,\n\nI have implemented git pre-received hook successfully. And it works on the repo level.\nCould anyone suggest how to call branch level hook please ?"},{"id":"211755","messageId":"20130320134631.GA7325@google.com","threadId":"33213","inReplyTo":"148C5E2E-8FD6-4686-A009-57D1F403C808@infoservices.in","subject":"Re: git branch based hook desigh","fromName":"Magnus Bäck","fromEmail":"baeck@google.com","sentAt":"2013-03-20T13:46:32Z","receivedAt":"2013-03-20T13:46:32Z","isPatch":false,"sender":{"key":"baeck@google.com","avatar":null},"body":"On Monday, March 18, 2013 at 00:27 EDT,\n     Joydeep Bakshi <joydeep.bakshi@infoservices.in> wrote:\n\n> I have implemented git pre-received hook successfully. And it works on\n> the repo level.\n> Could anyone suggest how to call branch level hook please ?--\n\nIf you need to have different hook behaviors depending on the ref that's\nabout to be updated, just put a conditional in the hook. You get the\nname(s) of ref(s) to be updated on stdin.\n\n-- \nMagnus Bäck\nbaeck@google.com\n"}]}