From: Jeff King <peff@peff.net>
To: John Goerzen <jgoerzen@complete.org>
Cc: git@vger.kernel.org
Subject: Re: git-email automatic --to detection?
Date: Mon, 25 Feb 2008 13:34:14 -0500 [thread overview]
Message-ID: <20080225183413.GA15131@sigill.intra.peff.net> (raw)
In-Reply-To: <slrnfs3rv4.aqm.jgoerzen@katherina.lan.complete.org>
On Sun, Feb 24, 2008 at 04:29:56PM -0600, John Goerzen wrote:
> This will look at the repo the local copy was cloned from, find all
> local changesets that aren't on the remote, and email off a set of
> patches to the remote maintainer. It finds the email address to send
> to by looking at _darcs/prefs/email *on the remote*, which is roughly
> the same as setting an option in .git/config.
There is not (currently) a way to read the remote config using the git
protocol. There was some discussion on a protocol extension a few months
back to do so, but I don't recall whether any patches came out of it.
> There are a couple of nice things about this:
>
> 1) Patch submitters don't have to keep track of where to send patches
> for each project they work on
>
> 2) Potential submitters don't have to be notified if the submission
> address changes
There was some discussion about this a while back for the kernel. Some
relevant points that I recall:
- there's more than _one_ maintainer for the repo; in fact, who you
email depends on what part of the code you are touching
- this information could be shipped as part of the repo (i.e., under
version control like the rest of the project, as it changes with the
project)
- this information can potentially be inferred from git shortlog
and/or blame; this addresses the problem of data becoming stale
See this thread:
http://mid.gmane.org/1187110824.32555.76.camel@localhost
> As far as I can tell from looking at git-send-email(1),
> git-format-patch(1), and git-config(1), git doesn't have this
> capability. Is that correct? If so, is it possible to add something
> like this? Would it also be possible to unify git-format-patch and
> git-send-email into a single command that generates and sends the
> patch(es)?
You could make a wrapper script around the two commands that pieces them
together. Though I'm not sure how likely that would be to get accepted
upstream; there are already complaints of too many commands, and this
one would likely be specific to your workflow (many of us have our own
such wrapper scripts already).
-Peff
next prev parent reply other threads:[~2008-02-25 18:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-24 22:29 git-email automatic --to detection? John Goerzen
2008-02-24 22:56 ` Paolo Ciarrocchi
2008-02-25 15:07 ` John Goerzen
2008-02-25 18:35 ` Jeff King
2008-02-25 18:56 ` Paolo Ciarrocchi
2008-02-25 14:39 ` Miklos Vajna
2008-02-25 15:08 ` John Goerzen
2008-02-25 20:50 ` Miklos Vajna
2008-02-25 18:34 ` Jeff King [this message]
2008-02-25 18:57 ` Matthieu Moy
2008-02-25 19:19 ` Jeff King
2008-02-25 20:02 ` John Goerzen
2008-02-26 9:23 ` Matthieu Moy
2008-02-26 14:07 ` John Goerzen
2008-02-25 20:55 ` Miklos Vajna
2008-02-26 13:59 ` John Goerzen
2008-02-26 17:44 ` Miklos Vajna
2008-02-25 19:47 ` Junio C Hamano
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=20080225183413.GA15131@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=jgoerzen@complete.org \
/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 NNTP newsgroup(s).