簡體中文 ▾ 主題 ▾ 最新版本 ▾ git-get-tar-commit-id 最後更新於 2.43.0

名稱

git-get-tar-commit-id - 從使用 git-archive 建立的歸檔中提取提交 ID

概要

git get-tar-commit-id

描述

從標準輸入讀取由 *git archive* 建立的 tar 歸檔,並從中提取儲存在其中的提交 ID。它只讀取輸入的前 1024 位元組,因此其執行時受 tar 歸檔大小的影響不大。

如果未找到提交 ID,*git get-tar-commit-id* 會以返回碼 1 靜默退出。這可能發生在歸檔不是透過 *git archive* 建立的情況下,或者 *git archive* 的第一個引數是樹 ID 而不是提交 ID 或標籤的情況下。

GIT

Git[1] 套件的一部分

scroll-to-top