summaryrefslogtreecommitdiffstats
path: root/git-replace.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2009-10-19 08:04:30 +0000
committerJunio C Hamano <junio@hera.kernel.org>2009-10-19 08:04:30 +0000
commit3d23a0a9e5d0777602bc7981486f41110c8ca0d6 (patch)
treefa9999f1a552cb19dc0c547e0aded6bbccbf84a0 /git-replace.txt
parentb71a22dd77bf19bcdb5ac49092a2f2b781a2b24f (diff)
downloadgit-htmldocs-3d23a0a9e5d0777602bc7981486f41110c8ca0d6.tar.gz
Autogenerated HTML docs for v1.6.5.1-61-ge79999
Diffstat (limited to 'git-replace.txt')
-rw-r--r--git-replace.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/git-replace.txt b/git-replace.txt
index 915cb77b2..8adc1ef55 100644
--- a/git-replace.txt
+++ b/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
------