Re: [Freeciv-Dev] Please consider posting patches as .diff instead of .patch

2009-09-05 Thread Marko Lindqvist
2009/9/5 Bernd Jendrissek :
>
> Can't find it either :(  Maybe you can hack something up with
> diff.external that points at a script that does something like
> sed '/^diff/s/a\/trunk\///' over the patch?

 Not worth it. Need to use "-p2" is not that big an issue for me.


 - ML

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] Please consider posting patches as .diff instead of .patch

2009-09-04 Thread Bernd Jendrissek
On Wed, Sep 2, 2009 at 10:56 PM, Matthias
Pfafferodt wrote:
> I'm using git and it (and the tools build around it) create the patches in
> this form. For these patches you can do

git config format.suffix .diff

> I can rename the patches to *.diff, but I don't know how to change the number
> of slashes (directories) used by git ...

Can't find it either :(  Maybe you can hack something up with
diff.external that points at a script that does something like
sed '/^diff/s/a\/trunk\///' over the patch?

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] Please consider posting patches as .diff instead of .patch

2009-09-04 Thread Egor Vyscrebentsov
Good day!

2009/9/3 Marko Lindqvist wrote:
> I have noticed that more and more people name their patches as .patch.
> It would be easier for me if they were named .diff.

Not a problem, but why? (Is it an issue with mailer, system, mailman,
whatever else?) Also, .patch looks like standard in packages (like
rpms.)

> And while I'm at it, I also prefer patches that are relative to parent
> dir of freeciv = ones that I can apply as "patch -u -p1 -d freeciv.src
> < patch.diff".

git-diff seems to have no possibility of this...

-- 
Thanks, evyscr

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] Please consider posting patches as .diff instead of .patch

2009-09-02 Thread Matthias Pfafferodt
I'm using git and it (and the tools build around it) create the patches in 
this form. For these patches you can do

patch -d ./freeciv.git/trunk/ -u -p2 < ./file.patch

I can rename the patches to *.diff, but I don't know how to change the number 
of slashes (directories) used by git ...

Matthias

Am Wednesday 02 September 2009 22:36:53 schrieb Marko Lindqvist:
> I have noticed that more and more people name their patches as .patch.
> It would be easier for me if they were named .diff.
>
> And while I'm at it, I also prefer patches that are relative to parent
> dir of freeciv = ones that I can apply as "patch -u -p1 -d freeciv.src
> < patch.diff".
>
>
> - ML
>
> ___
> Freeciv-dev mailing list
> Freeciv-dev@gna.org
> https://mail.gna.org/listinfo/freeciv-dev



-- 
Matthias Pfafferodt - http://www.mapfa.de
Matthias.Pfafferodt  mapfa.de

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] Please consider posting patches as .diff instead of .patch

2009-09-02 Thread Marko Lindqvist
I have noticed that more and more people name their patches as .patch.
It would be easier for me if they were named .diff.

And while I'm at it, I also prefer patches that are relative to parent
dir of freeciv = ones that I can apply as "patch -u -p1 -d freeciv.src
< patch.diff".


- ML

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev