[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Quilt-dev] [RFC] Conditional diff/refresh opts depending on the sou
From: |
Josh Boyer |
Subject: |
Re: [Quilt-dev] [RFC] Conditional diff/refresh opts depending on the source dir name |
Date: |
Thu, 21 Jan 2010 07:27:17 -0500 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
On Wed, Jan 20, 2010 at 11:36:04AM +0100, Andreas Krebbel wrote:
> Hi,
>
> working on different projects I've to deal with different patch formats
> and was looking for a way to handle that automatically for me.
>
> I'm using quilt for my patch management very much but usually forget
> about adjusting the diff options in .quiltrc when switching from one
> project to another. That's why I did a small change to my local quilt
> installation which allows me to set diff opts depending on the name of
> the source directory of the project. With that change it is possible to
> set quilt diff args like that:
>
> QUILT_DIFF_ARGS="--no-timestamps --color=auto | gcc*:-C3 | *libc*:-U3"
>
> which makes quilt to use these options when in a directory starting with
> gcc:
> --no-timestamps --color=auto -C3
>
> or these if you are in a directory whose name contains libc:
> --no-timestamps --color=auto -U3
>
>
> I think this might be useful to others as well. What do you think?
Would it be easier to have it source a .quiltrc from CWD instead? Then you
could just have a different .quiltrc for each project with the different
options.
josh