summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-01-07 20:42:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-01-07 20:42:13 (GMT)
commitd35c8027937546e6b22a2f28123f731c84e3b380 (patch)
treeac634f285f6edfcc44430c03fd5bade5b62fce9d /Documentation
parentda178ac793047c41e4806a3c32fb421992642683 (diff)
parentfb1d6dabce69bce3f28a7f442da990ef8df872ac (diff)
downloadgit-d35c8027937546e6b22a2f28123f731c84e3b380.zip
git-d35c8027937546e6b22a2f28123f731c84e3b380.tar.gz
git-d35c8027937546e6b22a2f28123f731c84e3b380.tar.bz2
Merge branch 'jc/clone-borrow'
Allow "git clone --reference" to be used more safely. * jc/clone-borrow: clone: --dissociate option to mark that reference is only temporary
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-clone.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt
index 0363d00..f1f2a3f 100644
--- a/Documentation/git-clone.txt
+++ b/Documentation/git-clone.txt
@@ -12,7 +12,7 @@ SYNOPSIS
'git clone' [--template=<template_directory>]
[-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
[-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
- [--separate-git-dir <git dir>]
+ [--dissociate] [--separate-git-dir <git dir>]
[--depth <depth>] [--[no-]single-branch]
[--recursive | --recurse-submodules] [--] <repository>
[<directory>]
@@ -98,7 +98,14 @@ objects from the source repository into a pack in the cloned repository.
require fewer objects to be copied from the repository
being cloned, reducing network and local storage costs.
+
-*NOTE*: see the NOTE for the `--shared` option.
+*NOTE*: see the NOTE for the `--shared` option, and also the
+`--dissociate` option.
+
+--dissociate::
+ Borrow the objects from reference repositories specified
+ with the `--reference` options only to reduce network
+ transfer and stop borrowing from them after a clone is made
+ by making necessary local copies of borrowed objects.
--quiet::
-q::