pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus KARG <markus@headcrashing.eu>
To: 'List' <pgsql-jdbc@postgresql.org>
Subject: Re: Git branching structure: ff or no-ff
Date: Mon, 20 Jul 2015 22:16:58 +0200
Message-ID: <004c01d0c329$08376d30$18a64790$@eu> (raw)
In-Reply-To: <CAB=Je-EvF5tjAOCDJ_uLdw9chASsjpoK1J7TzshTNezPeVxBXg@mail.gmail.com>
References: <CAB=Je-FbiLB9Yby9OpgpTPLsoQCkRF5J_633g-z6jHL_LPxaxg@mail.gmail.com>
	<CADK3HHK4nkzsMnPpqTjkWFzizLMc=7mPMaRK6xR0en5F6P3wkw@mail.gmail.com>
	<CAB=Je-EvF5tjAOCDJ_uLdw9chASsjpoK1J7TzshTNezPeVxBXg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

I checked the GitHub docs. Unfortunately --no-ff is the default when using the "Merge" button in the browser and it cannot be changed! To have use fast-forward, Dave must always pull the change locally and merge it by hand.

So for simplicitly we should live with --no-ff to make Dave's life easier, but I think it should be common to reduce the number of commits per PR to one per feature/bug covered by the PR.

-Markus


-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Vladimir Sitnikov
Sent: Montag, 20. Juli 2015 20:35
To: Dave Cramer
Cc: List
Subject: Re: [JDBC] Git branching structure: ff or no-ff

I think we'd better keep existing commits as is otherwise everybody
will have problems with on-going pull requests.

For new commits I suggest we use certain level of rebasing.
I suggest rebasing features on top of master before integration, so
the history is linear.

What do you think?

For instance: commit cddcd185  feat: Improved composite/array type support...
git checkout -b tmp cddcd185 # git fetch origin
pull/ID/head:BRANCHNAME && git checkout head:BRANCHNAME can be used
here to fetch a pull request from github
git rebase 008f6e8b2f8d # use rebase -i to squash commits as required.
008f6e8b2f8d was origin/master before cddcd185 merged in
git checkout master
git merge --ff-only tmp
git branch -D tmp # remove branch

Vladimir


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



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



view thread (8+ messages)  latest in thread

Message-ID: <004c01d0c329$08376d30$18a64790$@eu>
Permalink:  ../004c01d0c329$08376d30$18a64790$@eu/
Also on:    postgresql.org/message-id/004c01d0c329$08376d30$18a64790$@eu

 · 

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-jdbc@postgresql.org
  Cc: markus@headcrashing.eu
  Subject: Re: Git branching structure: ff or no-ff
  In-Reply-To: <004c01d0c329$08376d30$18a64790$@eu>
  References: <CAB=Je-FbiLB9Yby9OpgpTPLsoQCkRF5J_633g-z6jHL_LPxaxg@mail.gmail.com> <CADK3HHK4nkzsMnPpqTjkWFzizLMc=7mPMaRK6xR0en5F6P3wkw@mail.gmail.com> <CAB=Je-EvF5tjAOCDJ_uLdw9chASsjpoK1J7TzshTNezPeVxBXg@mail.gmail.com> <004c01d0c329$08376d30$18a64790$@eu>

* 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