Re: [PATCH v2] format-patch --signature-file <file>
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 20, 2014, 15:06 UTC
- Message-ID
- <xmqqzjic1oc5.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <20140520062132.GA5222@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 12 quoted lines
> You could do: > > #define DEFAULT_SIGNATURE git_version_string > static const char *signature = DEFAULT_SIGNATURE; > > ... > > if (signature == DEFAULT_SIGNATURE) > ... > > but maybe that is getting a little unwieldy, considering the scope of > the original problem.
I agree. It is an invitation for doing something like
#define DEFAULT_SIGNATURE "-- \nfoo bar\n"
which defeats the purpose.
I have an unrelated and larger design level suggestion, but it may be better for me to refrain from sending it during the -rc freeze.