uTools-Manuals/docs/git/git get-tar-commit-id.html
2019-04-08 23:22:26 +08:00

1 line
1.1 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="c-markdown doc-markdown"><div class="doc-postil"><div class="c-markdown"><h2>名称</h2></div></div><div class="doc-postil"><div class="c-markdown"><p>git-get-tar-commit-id  - 从使用 git-archive 创建的存档中提取提交ID</p></div></div><div class="doc-postil"><div class="c-markdown"><h2>概要</h2></div></div><div class="doc-postil"><div class="c-markdown"><pre class="prism-token token language-javascript">git get-tar-commit-id</pre></div></div><div class="doc-postil"><div class="c-markdown"><h2>描述</h2></div></div><div class="doc-postil"><div class="c-markdown"><p>读取由<code>git archive</code>标准输入创建的 tar 归档并提取存储在其中的提交 ID。它只读取前1024个字节的输入因此其运行时不受tar归档文件大小的影响。</p></div></div><div class="doc-postil"><div class="c-markdown"><p>如果未找到提交 ID<code>git get-tar-commit-id</code>安静地存在返回代码为1。如果未使用创建的存档<code>git archive</code>或第一个参数为<code>git archive</code>树 ID 而不是提交 ID 或标记,则会发生这种情况。</p></div></div></div>