public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
	Uwe.Kleine-Koenig@digi.com, daniel@danielguilak.com,
	den@openvz.org, efault@gmx.de, etienne_lorrain@yahoo.fr,
	sam@ravnborg.org, tglx@linutronix.de, willy@linux.intel.com,
	torvalds@linux-foundation.org, adobriyan@gmail.com,
	kai.extern@googlemail.com, eduard.munteanu@linux360.ro
Subject: Re: [RFC PATCH] Script for generating Documentation/dontdiff from .gitignore files. (was Re: [RFC/PATCH] dontdiff: generate from gitignore)
Date: Tue, 16 Sep 2008 06:26:20 +0300	[thread overview]
Message-ID: <20080916032620.GA5188@localhost> (raw)
In-Reply-To: <20080915083407.3fd8e9b7.randy.dunlap@oracle.com>

On Mon, Sep 15, 2008 at 08:34:07AM -0700, Randy Dunlap wrote:
> On Sun, 14 Sep 2008 21:23:57 +0300 Eduard - Gabriel Munteanu wrote:
> 
> > .gitignore files get more testing than Documentation/dontdiff, since most
> > developers follow Git workflow when sending patches. The latter tends to
> > stay outdated and needs to be synchronized every now and then. This patch
> > provides a script that scans all .gitignore files and generates a
> > Documentation/dontdiff to stdout.
> > 
> > Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
> 
> Hi,
> You probably missed (& should read) this thread:
>   http://lkml.org/lkml/2008/9/12/154
> 
>

Thanks, it makes sense.

It seems like diff can't handle such scenarios at all. I suppose Linux should
supply its own diff tool (which uses regular diff, but implements proper file
matching).

Maybe git-diff alone could be included in the tarballs, I'll look into
it.


	Cheers,
	Eduard

> > ---
> >  scripts/gen_dontdiff.sh |   21 +++++++++++++++++++++
> >  1 files changed, 21 insertions(+), 0 deletions(-)
> >  create mode 100755 scripts/gen_dontdiff.sh
> > 
> > diff --git a/scripts/gen_dontdiff.sh b/scripts/gen_dontdiff.sh
> > new file mode 100755
> > index 0000000..cd94747
> > --- /dev/null
> > +++ b/scripts/gen_dontdiff.sh
> > @@ -0,0 +1,21 @@
> > +#!/bin/bash
> > +
> > +# Copyright (C) 2008 Eduard - Gabriel Munteanu
> > +#
> > +# This file is released under GPL version 2.
> > +
> > +echo "### Generated by gen_dontdiff.sh ###"
> > +
> > +grep -Ev "^([[:space:]]*[[#]]*|$)" .gitignore
> > +
> > +find . -mindepth 2 -name .gitignore | sed -e "s/^\.\///g" | while read FILE
> > +do
> > +	CURR_DIR=`echo "$FILE" | sed -e "s/\.gitignore$//g"`
> > +	echo "# $FILE"
> > +	grep -Ev "^([[:space:]]*[[#]]*|$)" $FILE | while read LINE
> > +	do
> > +		echo $CURR_DIR$LINE
> > +	done
> > +	echo ""
> > +done
> > +
> > -- 
> 
> ---
> ~Randy
> Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
> http://linuxplumbersconf.org/

  reply	other threads:[~2008-09-16  3:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <e2e108260809130052u454b6920h9745c27eb2f4b20c@mail.gmail.com>
2008-09-14 18:23 ` [RFC PATCH] Script for generating Documentation/dontdiff from .gitignore files Eduard - Gabriel Munteanu
2008-09-15 15:34   ` Randy Dunlap
2008-09-16  3:26     ` Eduard - Gabriel Munteanu [this message]
2008-09-01 22:09 [path] don't diff generated firmware files Arjan van de Ven
2008-09-01 23:14 ` Alexey Dobriyan
2008-09-12 17:17   ` Randy Dunlap
2008-09-12 17:17   ` [PATCH] dontdiff: more updates to be closer to gitignore Randy Dunlap
2008-09-12 17:18   ` [RFC/PATCH] dontdiff: generate from gitignore Randy Dunlap
2008-09-12 17:36     ` Linus Torvalds
2008-09-12 17:41       ` Randy Dunlap
2008-09-12 20:32         ` Kai Henningsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080916032620.GA5188@localhost \
    --to=eduard.munteanu@linux360.ro \
    --cc=Uwe.Kleine-Koenig@digi.com \
    --cc=adobriyan@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=daniel@danielguilak.com \
    --cc=den@openvz.org \
    --cc=efault@gmx.de \
    --cc=etienne_lorrain@yahoo.fr \
    --cc=kai.extern@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=randy.dunlap@oracle.com \
    --cc=sam@ravnborg.org \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    --cc=willy@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox