TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pull Requests via Git Push

16 pointsby stargrave10 months ago

2 comments

qhwudbebd10 months ago
Nice! A couple of thoughts re. your &quot;It&#x27;s not perfect&quot; which wouldn&#x27;t add real extra complexity:<p>Using --from with git-format-patch will add the From: header to the commit message body in the standard way when emailing a patch written by someone else, which would allow you to preserve this easily without risking excitement from injection attacks into email headers.<p>Maybe the right behaviour for all-zero $oldsha is to quietly turn format-patch $oldsha..$newsha into format-patch --root $newsha?
评论 #40974682 未加载
codetrotter10 months ago
<p><pre><code> echo &#x27;The push will now exit with an error. No commits have actually been pushed.&#x27; </code></pre> Is this part so that the temporary git objects are cleaned up? Or is there some other reason that it has to exit with error?
评论 #40970749 未加载