Re: Reacting to new commits in a poll-mirror
- From
- martin f krafft <madduck@madduck.net>
- Date
- Feb 3, 2010, 10:48 UTC
- Message-ID
- <20100203104857.GC20450@lapse.rw.madduck.net>
- In-Reply-To
- <7vzl3rt88c.fsf@alter.siamese.dyndns.org>
also sprach Junio C Hamano <gitster@pobox.com> [2010.02.03.1432 +1300]:
Show 11 quoted lines
> So I don't see what you find wrong about writing your script like: > > #!/bin/sh > before_fetch=$(git for-each-ref --format='%(objectname)') && > git fetch || exit > > git rev-list --all --not $before_fetch | > while read rev > do > do your patchwork magic... > done
This sounds pretty much what I had in mind, and you have convinced me that this is the right/better approach. Thanks for keeping those feet on the ground!
--
martin | http://madduck.net/ | http://two.sentenc.es/
half a bee, philosophically, must ipso facto half not be.
but half the bee has got to be, vis-a-vis its entity. you see?
but can a bee be said to be or not to be an entire bee,
when half the bee is not a bee, due to some ancient injury?
-- monty python
spamtraps: madduck.bogus@madduck.net