[OT] there is a way to extract a previously applied patch?

Started by Jaime Casanovaabout 17 years ago5 messageshackers
Jump to latest
#1Jaime Casanova
jcasanov@systemguards.com.ec

Hi,

I want to put the patch for "Allow AS to be omitted when specifying an
output column name" [1]http://archives.postgresql.org/pgsql-committers/2008-02/msg00172.php in 8.3.5 because i'm doing a migration and
need that (for avoiding large changes in application) before May 1st,
because is only 2 .y files i tried to just copy 'n paste but the links
doesn't work.

Other idea is: is there anyway to extract patches from the repository?
The reason i want that is that the commit message let me thing that
the patch is not exactly the same that Hiroshi Saito sent

[1]: http://archives.postgresql.org/pgsql-committers/2008-02/msg00172.php

--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157

#2Robert Haas
robertmhaas@gmail.com
In reply to: Jaime Casanova (#1)
Re: [OT] there is a way to extract a previously applied patch?

Easy to do with git.

$ git log

Use "/Allow AS" to find the commit. Oh, there it is.

$ git log -1 -p 4f08d8492598a518f803d8c2979b39f0050b0f8d > allow-as.patch

Attached for your convenience. :-)

...Robert

Attachments:

allow-as.patchtext/x-diff; charset=US-ASCII; name=allow-as.patchDownload+110-42
#3Jaime Casanova
jcasanov@systemguards.com.ec
In reply to: Robert Haas (#2)
Re: [OT] there is a way to extract a previously applied patch?

On Wed, Jan 28, 2009 at 12:05 AM, Robert Haas <robertmhaas@gmail.com> wrote:

Easy to do with git.

$ git log

Use "/Allow AS" to find the commit. Oh, there it is.

$ git log -1 -p 4f08d8492598a518f803d8c2979b39f0050b0f8d > allow-as.patch

Attached for your convenience. :-)

thanks, i will have to start to learn GIT

--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157

#4Andrew Dunstan
andrew@dunslane.net
In reply to: Robert Haas (#2)
Re: [OT] there is a way to extract a previously applied patch?

Robert Haas wrote:

Easy to do with git.

$ git log

Use "/Allow AS" to find the commit. Oh, there it is.

$ git log -1 -p 4f08d8492598a518f803d8c2979b39f0050b0f8d > allow-as.patch

Attached for your convenience. :-)

Please don't post patches for private use on the list.

cheers

andrew

#5Peter Eisentraut
peter_e@gmx.net
In reply to: Robert Haas (#2)
Re: [OT] there is a way to extract a previously applied patch?

On Wednesday 28 January 2009 07:05:17 Robert Haas wrote:

Easy to do with git.

$ git log

Use "/Allow AS" to find the commit. Oh, there it is.

$ git log -1 -p 4f08d8492598a518f803d8c2979b39f0050b0f8d > allow-as.patch

Attached for your convenience. :-)

More compactly, git show $HASH also works. TIMTOWTDI, apparently.