Re: can we prevent reflog deletion when branch is deleted?
- From
Sitaram Chamarty <sitaramc@gmail.com>
- Date
- Nov 14, 2013, 16:20 UTC
- Message-ID
- <5284F852.8080609@gmail.com>
- In-Reply-To
- <2137000803.2895009.1384440156683.JavaMail.root@genarts.com>
I can't resist...
On 11/14/2013 08:12 PM, Stephen Bash wrote:
[snipped some stuff from Peff]
[snipped 60 lines of python]
In honor of your last name, here's what I would do if I needed to log ref updates (and wasn't using Gitolite):
#!/bin/bash # -- use this as a post-receive hook
while read old new ref
do
echo $(date +%F %T): Successful push by $USER of $ref from $old to $new
done >> push-log.txt