亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
Guides gitattributes giteveryday gitglossary gitignore gitmodules gitrevisions gittutorial gitworkflows Administration git archive git bundle git clean git filter-branch git fsck git gc git instaweb git reflog Basic Snapshotting git add git commit git diff git mv git reset git rm git status Branching and Merging git branch git checkout git log git merge git mergetool git stash git tag Debugging git bisect git blame git grep Email git am git format-patch git request-pull git send-email External Systems git fast-import git svn Getting and Creating Projects git clone git init Git git annotate git archimport git bisect-lk2009 git check-attr git check-mailmap git check-ref-format git checkout-index git cherry git citool git column git credential git credential-cache git credential-store git cvsexportcommit git cvsimport git cvsserver git diff-files git diff-tree git difftool git fast-export git fetch-pack git fmt-merge-msg git get-tar-commit-id git gui git http-backend git http-fetch git http-push git imap-send git index-pack git interpret-trailers git ls-remote git ls-tree git mailinfo git mailsplit git merge-file git merge-index git merge-one-file git merge-tree git mktag git mktree git name-rev git notes git p4 git pack-objects git pack-redundant git pack-refs git parse-remote git patch-id git prune git prune-packed git quiltimport git receive-pack git remote-ext git remote-fd git remote-testgit git repack git replace git rerere git send-pack git sh-i18n git sh-setup git shell git show-branch git show-index git stripspace git unpack-file git unpack-objects git upload-archive git upload-pack git var git verify-commit git verify-tag git whatchanged git worktree Inspection and Comparison git describe git shortlog git show Miscellaneous api credentials api index gitcli gitcore tutorial gitcredentials gitcvs migration gitdiffcore githooks gitk gitnamespaces gitremote helpers gitrepository layout gitsubmodules gittutorial 2 gitweb gitweb.conf pack format User Manual Patching git apply git cherry-pick git rebase git revert Plumbing Commands git cat-file git check-ignore git commit-tree git count-objects git diff-index git for-each-ref git hash-object git ls-files git merge-base git read-tree git rev-list git rev-parse git show-ref git symbolic-ref git update-index git update-ref git verify-pack git write-tree Server Admin git daemon git update-server-info Setup and Config git git config git help Sharing and Updating Projects git fetch git pull git push git remote git submodule
characters

名稱(chēng)

git-patch-id  - 計(jì)算補(bǔ)丁的唯一 ID

概要

git patch-id [--stable | --unstable]

描述

從標(biāo)準(zhǔn)輸入中讀取補(bǔ)丁并為其計(jì)算補(bǔ)丁 ID。

“補(bǔ)丁ID”只不過(guò)是與補(bǔ)丁相關(guān)的文件差異的 SHA-1之和,忽略空白和行號(hào)。因此,它“相當(dāng)穩(wěn)定”,但同時(shí)也是相當(dāng)獨(dú)特的,即具有相同“補(bǔ)丁ID”的兩個(gè)補(bǔ)丁幾乎保證是相同的東西。

IOW,你可以使用這個(gè)東西來(lái)尋找可能的重復(fù)提交。

在處理git diff-tree輸出時(shí),它利用了補(bǔ)丁前綴為提交的對(duì)象名稱(chēng)并輸出兩個(gè)40字節(jié)的十六進(jìn)制字符串的事實(shí)。第一個(gè)字符串是補(bǔ)丁ID,第二個(gè)字符串是提交ID。這可以用來(lái)制作從補(bǔ)丁ID到提交ID的映射。

選項(xiàng)

--stable

使用“穩(wěn)定”的哈希總和作為補(bǔ)丁 ID。有了這個(gè)選項(xiàng):

  • 重新排序組成補(bǔ)丁的文件差異不會(huì)影響ID。特別是,通過(guò)將相同的兩棵樹(shù)與“-O <orderfile>”的兩個(gè)不同設(shè)置進(jìn)行比較而產(chǎn)生的兩個(gè)補(bǔ)丁導(dǎo)致相同的補(bǔ)丁ID簽名,從而允許計(jì)算結(jié)果用作索引關(guān)于兩棵樹(shù)之間的變化;

  • 結(jié)果與 git 1.9及更早版本產(chǎn)生的值不同,或者當(dāng)配置了“unstable”散列(請(qǐng)參閱下面的--unstable)時(shí)產(chǎn)生的值 - 即使在不使用“-O <orderfile>”的情況下使用差異輸出時(shí),從而使現(xiàn)有數(shù)據(jù)庫(kù)存儲(chǔ)這種“不穩(wěn)定”或歷史補(bǔ)丁ID不可用。

如果 patchid.stable 設(shè)置為 true,這是默認(rèn)值。

--unstable

使用“unstable”散列作為修補(bǔ)程序ID。使用此選項(xiàng),產(chǎn)生的結(jié)果與 git 1.9及更早版本生成的 patch-id 值兼容。預(yù)先存在的數(shù)據(jù)庫(kù)存儲(chǔ)由 git 1.9及更高版本(不涉及重新排序的補(bǔ)?。┥傻难a(bǔ)丁id的用戶可能需要使用此選項(xiàng)。

This is the default.
Previous article: Next article: