]> Pileus Git - ~andy/git/blobdiff - Documentation/fetch-options.txt
fetch: add --update-shallow to accept refs that update .git/shallow
[~andy/git] / Documentation / fetch-options.txt
index ba1fe4958227dce5ab146a39374cf02c127c0c65..54043e3633af37585e87e80077d4f31a27731d60 100644 (file)
        branch history. Tags for the deepened commits are not fetched.
 
 --unshallow::
-       Convert a shallow repository to a complete one, removing all
-       the limitations imposed by shallow repositories.
+       If the source repository is complete, convert a shallow
+       repository to a complete one, removing all the limitations
+       imposed by shallow repositories.
++
+If the source repository is shallow, fetch as much as possible so that
+the current repository has the same history as the source repository.
+
+--update-shallow::
+       By default when fetching from a shallow repository,
+       `git fetch` refuses refs that require updating
+       .git/shallow. This option updates .git/shallow and accept such
+       refs.
 
 ifndef::git-pull[]
 --dry-run::