git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-email automatic --to detection?

From
JGJohn Goerzen <jgoerzen@complete.org>
Date
Feb 26, 2008, 14:07 UTC
Message-ID
<slrnfs878k.prc.jgoerzen@katherina.lan.complete.org>
In-Reply-To
<vpqve4c136b.fsf@bauges.imag.fr>
On 2008-02-26, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
Show 5 quoted lines
>> Right.  That's why this would be a per-repo setting.  It wouldn't be
>> pulled or cloned, just looked up when needed.
>
> I think it should. Not versionned, but initialized by "clone" based on
> the cloned repo.
That would work.
> The advantage of a clone-time initialization compared to a submit-time
> look up is that the local user can very easily change the value
> manually after a clone.
You could always make it work like this:
* If an address is given on the command line, use that.
* Otherwise, if an address is given in config, use that.
* Otherwise, look up the address at the remote repo; if successful,
  use that.
* Otherwise, prompt the user.

The advantage of this is that if the submission address changes (but the remote repo URL hasn't), then patches can automatically go to the right place. Of course the disadvantage is that the config is not initialized for offline mail queuing at clone time.

I have generally found that not being able to queue patches offline isn't a big deal to me. Of course, someone could effectively do that also be using format-patch as it is normally used now.

-- John
Previous: Matthieu MoyNext: Miklos Vajna
Message 14 of 18 in “git-email automatic --to detection?”
  1. John GoerzenFeb 24, 2008
  2. Paolo CiarrocchiFeb 24, 2008
  3. John GoerzenFeb 25, 2008
  4. Jeff KingFeb 25, 2008
  5. Paolo CiarrocchiFeb 25, 2008
  6. Miklos VajnaFeb 25, 2008
  7. John GoerzenFeb 25, 2008
  8. Miklos VajnaFeb 25, 2008
  9. Jeff KingFeb 25, 2008
  10. Matthieu MoyFeb 25, 2008
  11. Jeff KingFeb 25, 2008
  12. John GoerzenFeb 25, 2008
  13. Matthieu MoyFeb 26, 2008
  14. John GoerzenFeb 26, 2008
  15. Miklos VajnaFeb 25, 2008
  16. John GoerzenFeb 26, 2008
  17. Miklos VajnaFeb 26, 2008
  18. Junio C HamanoFeb 25, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.