From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751374Ab3CURQS (ORCPT ); Thu, 21 Mar 2013 13:16:18 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:53177 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751041Ab3CURQQ (ORCPT ); Thu, 21 Mar 2013 13:16:16 -0400 Message-ID: <1363886175.30275.10.camel@joe-AO722> Subject: Re: [PATCH] sound: max98090: Remove executable bit From: Joe Perches To: Mark Brown Cc: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Date: Thu, 21 Mar 2013 10:16:15 -0700 In-Reply-To: <20130321162503.GC14768@opensource.wolfsonmicro.com> References: <1363730323.16270.11.camel@joe-AO722> <20130320095758.GD28775@opensource.wolfsonmicro.com> <1363792936.16270.30.camel@joe-AO722> <20130320163627.GS28775@opensource.wolfsonmicro.com> <1363820072.16270.43.camel@joe-AO722> <20130321162503.GC14768@opensource.wolfsonmicro.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.6.2-0ubuntu0.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2013-03-21 at 17:25 +0100, Mark Brown wrote: > > I suggest you use a git pre-commit hook to your > > tree and use sed/perl to add a specific prefix > > if it doesn't exist. > > http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/ > > I don't think you're quite understanding the issues with automation > here. Or indeed the desired end result. What issue is that? Maybe this would work for you... $ cat .git/hooks/applypatch-msg #!/bin/sh . git-sh-setup perl -p -i -e 's/^(?:ASoC:\s*)?(.*)$/ASoC: $1/g if 1 .. 1' {$1+"$@"} test -x "$GIT_DIR/hooks/commit-msg" && exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} : $