Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 326B511250 for ; Tue, 24 Jun 2014 20:08:25 +0000 (UTC) Received: (qmail 9670 invoked by uid 500); 24 Jun 2014 20:08:24 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 9615 invoked by uid 500); 24 Jun 2014 20:08:24 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 9566 invoked by uid 99); 24 Jun 2014 20:08:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 20:08:24 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rohityadav89@gmail.com designates 209.85.223.182 as permitted sender) Received: from [209.85.223.182] (HELO mail-ie0-f182.google.com) (209.85.223.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 20:08:20 +0000 Received: by mail-ie0-f182.google.com with SMTP id rp18so753541iec.41 for ; Tue, 24 Jun 2014 13:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=c25NJE0nQ6NPg8fS/lauw6QwjU0DoI00/LEE2O2mc1Y=; b=zyvyA9f+Ygx04VQCTjTlCnrd6kdr4dUd/kicdX0sAnRuDfUVdcVy8vBmVoASDuI4eE ErpTFajWzid3/9UFXZ/MKQg5a/uP+dVo22OWrKjWhKFBlyZGh8lF77pysV68jexBE1uK FvsWcphpszDkP83YmG0URmtwAQP5lwksXOCO9mZtyGZhtndSfidHA+Q88MNRPfHzwGrb cgW4xvfm+h/+e18uDU8pYcYAjbx09XzAaof4ZfhYeAxRkhAARj0iEqxfb8OfU/5nUidg fqeIpjyDEaHzyNLoddozQedJ91o87hdAixAPv9Knz04KO+Xx2Bu4r7/ugbuYpc066CTf hNXQ== X-Received: by 10.50.4.5 with SMTP id g5mr37264899igg.14.1403640479589; Tue, 24 Jun 2014 13:07:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.207.229 with HTTP; Tue, 24 Jun 2014 13:07:39 -0700 (PDT) In-Reply-To: References: <13020B0C-50C1-43FA-9DE0-840ED49AE5FB@apache.org> <20140624084453.GA14706@cloud> <20140624085746.GA14836@cloud> From: Rohit Yadav Date: Wed, 25 Jun 2014 01:37:39 +0530 Message-ID: Subject: Re: create_schema.sql To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=001a11c32c562dae6204fc9a8487 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c32c562dae6204fc9a8487 Content-Type: text/plain; charset=ISO-8859-1 Hi Daan and others, Let me share a way to guard files that interest us by alerting us using the following shell script git hook: Put the following your .git/hooks/post-merge (make sure to chmod +x the following shell script): # START OF SCRIPT #/usr/bin/env bash changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" check_run() { echo "$changed_files" | grep --quiet "$1" && eval "$2" } check_run .*.sql "say 'Found new delta. Please run it'" # on OSX this will literary speak out these words, fix as needed # END OF SCRIPT Acknowledgement: I did not invent this but reused this from Sindre Sorhus of sindresorhus.com Change filenames and regexes as needed. This will run everytime one does a git pull (not fetch, it runs post merging a remote/local branch to master/current branch). Hope this helps. On Tue, Jun 24, 2014 at 2:48 PM, Daan Hoogland wrote: > including the source release? I don't like:( I do agree that some kind > of guard would help, though > > On Tue, Jun 24, 2014 at 10:57 AM, Prasanna Santhanam > wrote: > > On Tue, Jun 24, 2014 at 10:51:31AM +0200, Daan Hoogland wrote: > >> It should be included in any release > >> > > so packaging can bring it back i thought. just a thought. > > -- > > Prasanna., > > > > ------------------------ > > Powered by BigRock.com > > > > > > -- > Daan > --001a11c32c562dae6204fc9a8487--