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

Re: [PATCH v2] Enable setting attach as the default in .gitconfig for git-format-patch.

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 10, 2009, 01:41 UTC
Message-ID
<7v3aenrrtx.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<498E50E2.8050309@codeweavers.com>
Jeremy White <jwhite@codeweavers.com> writes:
Show 20 quoted lines
> diff --git a/Documentation/git-format-patch.txt b/Documentation/git-format-patch.txt
> index 11a7d77..2e8e94e 100644
> --- a/Documentation/git-format-patch.txt
> +++ b/Documentation/git-format-patch.txt
> @@ -174,7 +174,8 @@ CONFIGURATION
>  -------------
>  You can specify extra mail header lines to be added to each message
>  in the repository configuration, new defaults for the subject prefix
> -and file suffix, and number patches when outputting more than one.
> +and file suffix, control attachements, and number patches when outputting
> +more than one.
>  
>  ------------
>  [format]
> @@ -183,6 +184,7 @@ and file suffix, and number patches when outputting more than one.
>  	suffix = .txt
>  	numbered = auto
>  	cc = <email>
> +	attach [ = mime-boundary-string ]
>  ------------

Once you added this configuration, if you ever wanted to defeat it for a single invocation, how would you do so? Edit the configuration file again?

Not that I am objecting to the patch, as I am unlikely to have such a configuration, but are there people who need to send attachment sometimes but not other times? They can say --attach from the command line without adding the configuraiton if they send their patch non-attached more often than as an attachment, but if they most of the time need to attach but sometimes need to send in-line, they do not have an easy way to do so.

Previous: Ben Bucksch
Message 44 of 44 in “Enable setting attach as the default in .gitconfig for git-format-patch.”
  1. Enable setting attach as the default in .gitconfig for git-format-patch.Jeremy White, Feb 8, 2009
  2. Boyd Stephen Smith Jr.Feb 8, 2009
  3. Jeremy WhiteFeb 8, 2009
  4. Johannes SchindelinFeb 8, 2009
  5. Michael J GruberFeb 9, 2009
  6. Ben BuckschFeb 9, 2009
  7. Johannes SchindelinFeb 9, 2009
  8. Michael J GruberFeb 9, 2009
  9. Boyd Stephen Smith Jr.Feb 9, 2009
  10. Ben BuckschFeb 9, 2009
  11. Johannes SchindelinFeb 9, 2009
  12. Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the default in .gitconfig for git-format-patch.)Jeremy White, Feb 9, 2009
  13. Ben BuckschFeb 9, 2009
  14. Jeremy WhiteFeb 9, 2009
  15. Michael J GruberFeb 9, 2009
  16. Ben BuckschFeb 9, 2009
  17. Jeremy WhiteFeb 9, 2009
  18. Brandon CaseyFeb 9, 2009
  19. Ben BuckschFeb 9, 2009
  20. Johannes SchindelinFeb 9, 2009
  21. Ben BuckschFeb 9, 2009
  22. Brandon CaseyFeb 9, 2009
  23. Ben BuckschFeb 9, 2009
  24. Ben BuckschFeb 9, 2009
  25. Brandon CaseyFeb 9, 2009
  26. Brandon CaseyFeb 9, 2009
  27. Ben BuckschFeb 9, 2009
  28. Brandon CaseyFeb 9, 2009
  29. Ben BuckschFeb 9, 2009
  30. Brandon CaseyFeb 9, 2009
  31. Ben BuckschFeb 9, 2009
  32. Brandon CaseyFeb 10, 2009
  33. Brandon CaseyFeb 9, 2009
  34. Johannes SchindelinFeb 9, 2009
  35. Michael J GruberFeb 10, 2009
  36. Miles BaderFeb 12, 2009
  37. Michael J GruberFeb 12, 2009
  38. Brandon CaseyFeb 9, 2009
  39. example patch corrupted by thunderbirdBrandon Casey, Feb 9, 2009
  40. Michael J GruberFeb 9, 2009
  41. Ben BuckschFeb 9, 2009
  42. Jeremy WhiteFeb 9, 2009
  43. Ben BuckschFeb 9, 2009
  44. Junio C HamanoFeb 10, 2009

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.