Am Montag, den 04.05.2009, 22:31 +0200 schrieb Robert Millan:
> On Tue, May 05, 2009 at 03:44:27AM +0800, Bean wrote:
> > Hi,
> >
> > git users can add this at the beginning of .git/hooks/pre-commit to
> > run the copyright update test before committing:
> >
> > L1=`git diff --cached --stat 2>/de
On Tue, May 05, 2009 at 03:44:27AM +0800, Bean wrote:
> Hi,
>
> git users can add this at the beginning of .git/hooks/pre-commit to
> run the copyright update test before committing:
>
> L1=`git diff --cached --stat 2>/dev/null | gawk '{ if (($2 == "|") &&
> ($3 > 5)) print $1}'`
> L2=`grep -lie
Hi,
git users can add this at the beginning of .git/hooks/pre-commit to
run the copyright update test before committing:
L1=`git diff --cached --stat 2>/dev/null | gawk '{ if (($2 == "|") &&
($3 > 5)) print $1}'`
L2=`grep -lie "Copyright (C).*\(199[0-9]\|200[^9]\) *Free" $L1 2>/dev/null`
if test
Hi,
This new script list more information, it helps to decide whether it
need update.
L1=`git diff --stat @{2009-01-01}..HEAD 2>/dev/null | gawk '{ if (($2
== "|") && ($3 > 5)) print $1}'`
L2=`grep -lie "Copyright (C).*\(199[0-9]\|200[^9]\) *Free" $L1 2>/dev/null`
git diff --stat @{2009-01-01}..
Hi,
I make some improvement to the script, now it only print files that
contains more than 5 lines of changes, which should be qualified as
significant.
grep -lie "Copyright (C).*\(199[0-9]\|200[^9]\) *Free" `git diff
--stat @{2009-01-01}..HEAD 2>/dev/null | gawk '{ if (($2 == "|") &&
($3 > 5)) p
On Mon, May 04, 2009 at 07:52:39PM +0200, Vladimir 'phcoder' Serbinenko wrote:
> On Mon, May 4, 2009 at 7:40 PM, Bean wrote:
>
> > Hi,
> >
> > Well, I just write a small script to detect files that needs updating.
> > BTW, I use git to access the svn repository:
> >
> With the following script :
Am Dienstag, den 05.05.2009, 01:40 +0800 schrieb Bean:
> Here are the result:
> Makefile.in
Makefile.in had curiously 2008,2009,2008.
I just fixed this.
--
Felix Zielcke
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/li
On Tue, May 05, 2009 at 01:40:02AM +0800, Bean wrote:
> Hi,
>
> Well, I just write a small script to detect files that needs updating.
> BTW, I use git to access the svn repository:
>
> grep -lie "Copyright (C).*\(199[0-9]\|200[^9]\) *Free" `git diff
> --stat @{2009-01-01}..HEAD 2>/dev/null | gre
Hi,
Well, I just write a small script to detect files that needs updating.
BTW, I use git to access the svn repository:
grep -lie "Copyright (C).*\(199[0-9]\|200[^9]\) *Free" `git diff
--stat @{2009-01-01}..HEAD 2>/dev/null | grep '|' | cut -d\ -f2`
2>/dev/null
Here are the result:
Makefile.in
Hi all,
Please remember to update copyright lines in files when you commit
copyright significant changes. As a general rule of thumb, if your
commit modifies/adds more than 10 lines of code it's likely going to
be copyright-significant. And if in doubt, it's better to err on the
safe side and u
10 matches
Mail list logo