Re: pre-receive hook ; how to detect file and append code ?
- From
Thomas Adam <thomas@xteddy.org>
- Date
- Jun 22, 2012, 13:41 UTC
- Message-ID
- <CA+39Oz6CEaRPfFGSzMw1+CsusMHm=2xmJDjzS7CXMG0OExTjGQ@mail.gmail.com>
- In-Reply-To
- <20120622183709.2f0beaa6@shiva.selfip.org>
On 22 June 2012 14:07, J. Bakshi <joydeep.bakshi@infoservices.in> wrote:
Show 5 quoted lines
> Dear list, > > How can I detect a specific file during push, if it is modified or not ? > And how can I then append a block of code into that file; if modified > during push ? I think pre-receive hook is the best for this operation.
Umm, what problem are you trying to solve? This is a solution to an unnamed problem, see "XY problem".
-- Thomas Adam