public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: GDB <gdb-patches@sourceware.org>, Binutils <binutils@sourceware.org>
Subject: Re: RFC: using AdaCore's git hooks for binutils-gdb.git ...
Date: Fri, 28 Nov 2014 14:27:00 -0000	[thread overview]
Message-ID: <20141128142653.GI5042@adacore.com> (raw)
In-Reply-To: <CAMe9rOpCRmcK+uZ0j7gmqk1V6rQvuSw21q+Atewz83KvNpe0uA@mail.gmail.com>

> >   - Allow the use of specific policies on a per-branch basis
> >     (ie - reject merges in release branches, for instance).
> >
> > Our scripts also correctly handle new references (new tags, new
> > branches), as well as git notes. It is also Gerrit-ready,
> 
> Does it handle removing a branch
> 
> # git push origin :foo
> 
> I used to get some extra messages.

Yes, you get an email notifying you of the branch being deleted,
and what commit the branch was pointing to before the removal
of that branch. In addition, if any commits are "lost" (no longer
accessible from any remaining branch or other reference), then
a list of the commits that are no longer on any branch is included
as well.

Here is an example of what you'd get in the simple case:

| From: Test Suite <testsuite@adacore.com>
| To: git-hooks-ci@example.com
| Subject: [repo] Deleted branch old-branch
| X-Act-Checkin: repo
| X-Git-Author: Test Suite <testsuite@adacore.com>
| X-Git-Refname: refs/heads/old-branch
| X-Git-Oldrev: cc8d2c2637bda27f0bc2125181dd2f8534d16222
| X-Git-Newrev: 0000000000000000000000000000000000000000
|
| The branch 'old-branch' was deleted.
| It previously pointed to:
|
|  cc8d2c2... Modify `c', delete `b'.

> Do we need to show the whole diff in the commit email?  I think
> a commit URL should be sufficient.  Binutils-gdb commit
> can have a very large commit diff due to generated files.

No such option is available at the moment.

Personally, I wouldn't like having a URL, at least not instead
of a diff.  I think having a diff is much more useful and immediate,
as I use those as a chance to review post commit as well, or verify
that what's committed is what was discussed on the list.

But for large commits, there is a limit to the maximum size of
the email, after which the email is truncated.

-- 
Joel

  reply	other threads:[~2014-11-28 14:27 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-28 13:58 Joel Brobecker
2014-11-28 14:08 ` H.J. Lu
2014-11-28 14:27   ` Joel Brobecker [this message]
2014-11-28 14:42     ` Joel Brobecker
2014-11-28 18:06   ` Joseph Myers
2014-11-28 20:50 ` Sergio Durigan Junior
2014-11-29  2:53   ` Joel Brobecker
2014-12-01 11:34 ` Pedro Alves
2014-12-07 14:21 ` Joel Brobecker
2014-12-08  6:05   ` Sergio Durigan Junior
2014-12-13 16:51   ` Joel Brobecker
2014-12-14 20:47     ` Joel Brobecker
2014-12-21 22:46       ` Joel Brobecker
2015-01-05  4:13         ` Joel Brobecker
2015-01-10  6:59           ` ANNOUNCEMENT: we have now switched to new git hooks (was: "Re: RFC: using AdaCore's git hooks for binutils-gdb.git ...") Joel Brobecker
2015-01-11 16:21             ` H.J. Lu
2015-01-12  4:08               ` Joel Brobecker
2015-01-12  4:16                 ` Joel Brobecker
2015-01-12 18:03                   ` Cary Coutant
2015-01-12  4:58               ` Joel Brobecker
2015-01-12  5:05                 ` H.J. Lu
2015-01-12  6:56                   ` 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=20141128142653.GI5042@adacore.com \
    --to=brobecker@adacore.com \
    --cc=binutils@sourceware.org \
    --cc=gdb-patches@sourceware.org \
    --cc=hjl.tools@gmail.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).