TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pull Requests via Git Push

16 点作者 stargrave10 个月前

2 条评论

qhwudbebd10 个月前
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 个月前
<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 未加载