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

Re: [PATCH] environment.c: introduce SETUP_GIT_ENV helper macro

From
Alexander Kuleshov <kuleshovmail@gmail.com>
Date
Feb 27, 2016, 19:10 UTC
Message-ID
<CANCZXo5aLD_9cjzwPK5zw_ZHmevxmX8c_e9ONPyByF7jn_zF7Q@mail.gmail.com>
In-Reply-To
<xmqqsi0ef0mz.fsf@gitster.mtv.corp.google.com>
Hello Junio,
On Sun, Feb 28, 2016 at 12:50 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 5 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>
>> Please don't.  A macro that hides "return" makes things harder to
>> follow, not easier.
I will consider it next time.
Show 5 quoted lines
> Having said that, I do think a higher-level macro that encapulates
> the whole thing may not be such a bad idea, i.e. making the above
> into
>
>     DECLARE_GIT_GETTER(const char *, get_git_dir, git_dir)
Yes, it is better. Will resend the patch.
Thank you.
Previous: Junio C Hamano
Message 4 of 4 in “environment.c: introduce SETUP_GIT_ENV helper macro”
  1. environment.c: introduce SETUP_GIT_ENV helper macroAlexander Kuleshov, Feb 27, 2016
  2. Junio C HamanoFeb 27, 2016
  3. Junio C HamanoFeb 27, 2016
  4. Alexander KuleshovFeb 27, 2016

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.