pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@2ndquadrant.com>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Inoue, Hiroshi <inoue@tpf.co.jp>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Git history author/committer fields (was Re: msdtc with 32-bit app fails to resolve in-doubt or not-notifed transactions)
Date: Thu, 26 Jun 2014 16:32:20 +0800
Message-ID: <53ABDA94.5010309@2ndquadrant.com> (raw)
In-Reply-To: <53ABD08C.3000403@vmware.com>
References: <53A45B59.70303@2ndquadrant.com>
	<53A4A8FE.6010901@tpf.co.jp>
	<53A50F8E.3090109@2ndquadrant.com>
	<53A53BF9.1020603@2ndquadrant.com>
	<53A7762E.10705@tpf.co.jp>
	<53A781AE.6020009@2ndquadrant.com>
	<53A89AC5.4010004@tpf.co.jp>
	<53A8EB74.5040806@2ndquadrant.com>
	<53AADC07.3090206@2ndquadrant.com>
	<53ABD08C.3000403@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On 06/26/2014 03:49 PM, Heikki Linnakangas wrote:
> On 06/25/2014 05:26 PM, Craig Ringer wrote:
>> Please merge branch fix-syswow64-msdtc from my repo at
>> https://github.com/ringerc/psqlODBC.git .
> 
> Oh, and while you do that, please avoid creating a merge commit. I hate
> those merge commits when I browse the git history, they're just useless
> noise. Please use "git rebase" to clean up the history in your local
> repository first. You can use "git push --dry-run" before the actual
> push to see what will be done. It will print the commit IDs that it
> would push, something like this:
> 
> a87a7dc..de42ed4  master     -> origin/master
> 
> You can then do "git log a87a7dc..de42ed4" to see those commits.
> 
> Also, it would be good to reset the author/committer information in the
> commit before pushing. Looking at the git history the other day, I was
> quite surprised to see commits from Craig, as I didn't know he's a
> psqlodbc committer. Then I realized that you had merged those commits
> from Craig's github repository :-). You can do "git commit --amend
> --reset" to reset them before pushing, but once you do that, should add
> a line in the commit message itself to give credit for the author of the
> patch.
> 
> That's what we do with the PostgreSQL main repository, anyway. We could
> also decide to use the git's Author field to track the original author,
> but at least the Committer field should reflect the actual psqlodbc
> committer. I'm not sure how to change that without changing the Author
> field, though.

I did a little more looking.

It seems the general idea is to retain Author (so what's Committer for?)
and use the Signed-off-by stuff:

author: "git commit -s" (push/pull workflow) or "git format-patch -s"
(email workflow)

committer: "git commit --amend -s" (push/pull workflow) or "git am -s"
(email workflow)

Per:

http://stackoverflow.com/questions/2348911


I guess really it depends on what the history is supposed to be. I'm not
sure core is a good guide here, as the project pretty much adopted a
"git as a better CVS" workflow.

It looks like if you amend / rebase a commit, the committer field is set
to your details, but the author remains the same. That seems appropriate.

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (5+ messages)  latest in thread

Message-ID: <53ABDA94.5010309@2ndquadrant.com>
Permalink:  ../53ABDA94.5010309@2ndquadrant.com/
Also on:    postgresql.org/message-id/53ABDA94.5010309@2ndquadrant.com

 · 

reply

Reply instructions:

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

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: craig@2ndquadrant.com, hlinnakangas@vmware.com, inoue@tpf.co.jp
  Subject: Re: Git history author/committer fields (was Re: msdtc with 32-bit app fails to resolve in-doubt or not-notifed transactions)
  In-Reply-To: <53ABDA94.5010309@2ndquadrant.com>
  References: <53A45B59.70303@2ndquadrant.com> <53A4A8FE.6010901@tpf.co.jp> <53A50F8E.3090109@2ndquadrant.com> <53A53BF9.1020603@2ndquadrant.com> <53A7762E.10705@tpf.co.jp> <53A781AE.6020009@2ndquadrant.com> <53A89AC5.4010004@tpf.co.jp> <53A8EB74.5040806@2ndquadrant.com> <53AADC07.3090206@2ndquadrant.com> <53ABD08C.3000403@vmware.com> <53ABDA94.5010309@2ndquadrant.com>

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

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox