lkml.org 
[lkml]   [2013]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] sound: max98090: Remove executable bit
From
Date
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+"$@"}
:
$




\
 
 \ /
  Last update: 2013-03-21 19:01    [W:0.069 / U:1.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site