Re: documentation for committing with git - Mailing list pgsql-hackers

From Robert Haas
Subject Re: documentation for committing with git
Date
Msg-id AANLkTinHFg7rNCkFqXdGBd40wQm6cKdT5MJfZNiqo-4z@mail.gmail.com
Whole thread Raw
In response to Re: documentation for committing with git  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: documentation for committing with git  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
On Sun, Aug 1, 2010 at 5:08 AM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> I'm a bit disappointed that the wiki page advises against git-new-workdir -
> that's exactly what I was planning to use. It claims there's data loss
> issues with that, does someone know the details? Is there really a risk of
> data loss if multiple workdirs are used, in our situation?

As I understand it, there is a risk of corruption if you ever do "git
gc" in the respository that the get-new-workdir was spawned from.  See
also Daniel Farina's email, here:

http://archives.postgresql.org/pgsql-hackers/2010-07/msg01489.php

It's not easy for me to mentally verify that the way I work won't
cause problems with this approach, but you may feel differently, and
that's fine.

> PS. I highly recommend always using "git push --dry-run" before the real
> thing, to make sure you're not doing anything funny.

Ah, that sounds like a good idea.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


pgsql-hackers by date:

Previous
From: Boxuan Zhai
Date:
Subject: Re: merge command - GSoC progress
Next
From: Robert Haas
Date:
Subject: Re: tracking inherited columns (was: patch for check constraints using multiple inheritance)