Re: "git intepret-trailers" vs. "sed script" to add the signature
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 3, 2017, 16:58 UTC
- Message-ID
- <xmqqh8ytmp7y.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1498925790.4321.7.camel@gmail.com>
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> writes:
Show 10 quoted lines
> So, it seems that excepting for 'commit' it has quite a nice spacing. I > guess we could add something like the following to fix that, > > # Add new line after SOB in case of "git commit" > NEW_LINE='\ > ' > if [ -z "$2" ] > then > sed -i "1i$NEW_LINE" "$1" > fi
Isn't "sed -i" GNUism that is not portable?
> I'll send a typical patch that uses "git interpret-headers" as a > follow-up.
When you say a "typical" patch, what do you exactly mean? Does anybody else send typical patches (or atypical ones for that matter) to the list?