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

Re: [PATCH] Disallow empty GIT_AUTHOR_NAME or GIT_COMMITTER_NAME

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Jul 9, 2007, 16:41 UTC
Message-ID
<4692653B.1090803@nrlssc.navy.mil>
In-Reply-To
<7vlkdsdaxo.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
> Brandon Casey <casey@nrlssc.navy.mil> writes:
...
Show 8 quoted lines
>> This still allows an empty GIT_AUTHOR_EMAIL or GIT_COMMITTER_EMAIL.
>> Possibly someone would want to use these variables to disable
>> the respective email address string?
>>
>> Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
> 
> Thanks.  But this makes me wonder why you do not do the same
> check for !*email

I thought someone may want to disable the author or committer email address by setting GIT_AUTHOR_EMAIL or GIT_COMMITTER_EMAIL to an empty string. I wasn't sure this was useful that's why I put a '?' at the end of my commit message.

Show 10 quoted lines
>> Then I send the patch to myself using git-format-patch and then
>> git-send-email. These two format the patch appropriately for
>> submission and allow me to set the message-id.
>>
>> Then I select the message, right-click and choose "Edit As New...",
>> edit, select the recipients, and send. I also now have a record of
>> the sent message which I would not have if I used only git-send-email.
> 
> I would just add myself to --bcc when running send-email; much
> simpler ;-). 

currently I can only use send-email to send email to myself, so this was an alternative to setting up an external editor in thunderbird. It's currently the path of least resistance for me.

-brandon
Previous: Junio C Hamano
Message 3 of 3 in “Disallow empty GIT_AUTHOR_NAME or GIT_COMMITTER_NAME”
  1. Disallow empty GIT_AUTHOR_NAME or GIT_COMMITTER_NAMEBrandon Casey, Jul 6, 2007
  2. Junio C HamanoJul 7, 2007
  3. Brandon CaseyJul 9, 2007

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.