X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-replace.txt;h=8adc1ef55c620d04fc10b8d6ccb0b9c90765a753;hb=1973b23d284d0473795798d208f4b2fe09c0e659;hp=915cb77b29f9d0fa71a288cace435e73637e1283;hpb=42fa6df99fe1f0439244893e81efad0cc4524c3d;p=git.git diff --git a/Documentation/git-replace.txt b/Documentation/git-replace.txt index 915cb77b2..8adc1ef55 100644 --- a/Documentation/git-replace.txt +++ b/Documentation/git-replace.txt @@ -23,6 +23,26 @@ replacement object. Unless `-f` is given, the replace reference must not yet exist in `.git/refs/replace/` directory. +Replace references will be used by default by all git commands except +those doing reachability traversal (prune, pack transfer and fsck). + +It is possible to disable use of replacement refs for any command +using the --no-replace-objects option just after "git". + +For example if commit "foo" has been replaced by commit "bar": + +------------------------------------------------ +$ git --no-replace-object cat-file commit foo +------------------------------------------------ + +show information about commit "foo", while: + +------------------------------------------------ +$ git cat-file commit foo +------------------------------------------------ + +show information about commit "bar". + OPTIONS ------- -f:: @@ -54,6 +74,7 @@ SEE ALSO -------- linkgit:git-tag[1] linkgit:git-branch[1] +linkgit:git[1] Author ------