aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-05-21 04:02:22 -0700
committerJunio C Hamano <gitster@pobox.com>2010-05-21 04:02:22 -0700
commit42779124a2f158583f89d23dec78266ea3471103 (patch)
treeec746071f8558ca209ffe8b21f93446eccabdd05 /Documentation
parent4cbf42e1519015a30401992815331c048ff3c982 (diff)
parent111fb858654b95355da05772b4dcdf91decc4721 (diff)
downloadgit-42779124a2f158583f89d23dec78266ea3471103.tar.gz
git-42779124a2f158583f89d23dec78266ea3471103.tar.xz
Merge branch 'st/remote-tags-no-tags'
* st/remote-tags-no-tags: remote add: add a --[no-]tags option Honor "tagopt = --tags" configuration option
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config.txt4
-rw-r--r--Documentation/git-remote.txt8
2 files changed, 10 insertions, 2 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 1e402e087..87f397ed9 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1593,7 +1593,9 @@ remote.<name>.uploadpack::
remote.<name>.tagopt::
Setting this value to \--no-tags disables automatic tag following when
- fetching from remote <name>
+ fetching from remote <name>. Setting it to \--tags will fetch every
+ tag from remote <name>, even if they are not reachable from remote
+ branch heads.
remote.<name>.vcs::
Setting this to a value <vcs> will cause git to interact with
diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt
index 3fc599c0c..ebaaadc17 100644
--- a/Documentation/git-remote.txt
+++ b/Documentation/git-remote.txt
@@ -10,7 +10,7 @@ SYNOPSIS
--------
[verse]
'git remote' [-v | --verbose]
-'git remote add' [-t <branch>] [-m <master>] [-f] [--mirror] <name> <url>
+'git remote add' [-t <branch>] [-m <master>] [-f] [--tags|--no-tags] [--mirror] <name> <url>
'git remote rename' <old> <new>
'git remote rm' <name>
'git remote set-head' <name> (-a | -d | <branch>)
@@ -51,6 +51,12 @@ update remote-tracking branches <name>/<branch>.
With `-f` option, `git fetch <name>` is run immediately after
the remote information is set up.
+
+With `--tags` option, `git fetch <name>` imports every tag from the
+remote repository.
++
+With `--no-tags` option, `git fetch <name>` does not import tags from
+the remote repository.
++
With `-t <branch>` option, instead of the default glob
refspec for the remote to track all branches under
`$GIT_DIR/remotes/<name>/`, a refspec to track only `<branch>`