pre-receive hook ; how to detect file and append code ?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

pre-receive hook ; how to detect file and append code ?

From: J. Bakshi <hidden>
Date: 2016-06-15 22:54:09

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.

Thanks

Re: pre-receive hook ; how to detect file and append code ?

From: Thomas Adam <hidden>
Date: 2016-06-15 22:54:09

On 22 June 2012 14:07, J. Bakshi [off-list ref] wrote:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help