public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Binutils Development <binutils@sourceware.org>,
	GDB Development <gdb@sourceware.org>
Subject: Re: src.git test repository
Date: Thu, 10 Oct 2013 05:13:00 -0000	[thread overview]
Message-ID: <20131010051314.GI3066@adacore.com> (raw)
In-Reply-To: <87r4bu9mw3.fsf@fleche.redhat.com>

> One note here is that I am still considering a hook to reject merge
> commits.
> 
> The rationale for this is that merge commits are ugly, and that it isn't
> a big deal to require a rebase before a merge, so that any merge is a
> fast-forward.

This has my support. We've found at AdaCore that unexperienced users
will often create merges unintentionally, and then push them without
even ever noticing it. The typical case is forgetting to add --rebase
in their "git pull" when they want to push a commit and find that
their repo is out of date.

There will be issues with special-feature development branches, however.
Let's say, for instance, that people want to collaborate on a certain
feature, and use a branch for its development. If development takes
a while, they might want to do regular merges from HEAD... We can adjust
the rule to say that merges are verbotten except on branches whose name
is prefixed by Eg. "topic/".

> I've done various test commits and pushes and I think these scripts are
> working adequately well.

Agreed.

For future enhancements open for consideration (and I may actually take
care of those myself), my only regrets are:

  - we seem to be getting one email per push, instead of one email
    per commit?

  - If we received one email per commit, we could put the subject
    of the commit as the subject of the email

Something that should also be reasonably easy to implement:

  - Style check the revision log to forbid commits if the second
    line (line after subject) is not empty. I have found that
    this assumption is too ingrained everywhere in git, and that
    not respecting it makes things look bad.

-- 
Joel

  reply	other threads:[~2013-10-10  5:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-07 15:19 Tom Tromey
2013-10-07 16:24 ` Eli Zaretskii
2013-10-07 16:53   ` Tom Tromey
2013-10-07 16:43 ` H.J. Lu
2013-10-07 16:56   ` Tom Tromey
2013-10-08 23:28     ` Iain Sandoe
2013-10-09  1:29       ` Tom Tromey
2013-10-09  5:15         ` Iain Sandoe
2013-10-09 21:04 ` Tom Tromey
2013-10-10  5:13   ` Joel Brobecker [this message]
2013-10-10 13:22     ` Tom Tromey
2013-10-10 13:44       ` Joel Brobecker

Reply instructions:

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

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

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131010051314.GI3066@adacore.com \
    --to=brobecker@adacore.com \
    --cc=binutils@sourceware.org \
    --cc=gdb@sourceware.org \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).