]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-parse-remote.txt
Documentation: rename gitlink macro to linkgit
[thirdparty/git.git] / Documentation / git-parse-remote.txt
CommitLineData
215a7ad1
JH
1git-parse-remote(1)
2===================
5077fa9c
JH
3
4NAME
5----
c3f0baac 6git-parse-remote - Routines to help parsing remote repository access parameters
5077fa9c
JH
7
8
9SYNOPSIS
10--------
215a7ad1 11'. git-parse-remote'
5077fa9c
JH
12
13DESCRIPTION
14-----------
15This script is included in various scripts to supply
16routines to parse files under $GIT_DIR/remotes/ and
de3820f5
JH
17$GIT_DIR/branches/ and configuration variables that are related
18to fetching, pulling and pushing.
5077fa9c
JH
19
20The primary entry points are:
21
22get_remote_refs_for_fetch::
23 Given the list of user-supplied `<repo> <refspec>...`,
24 return the list of refs to fetch after canonicalizing
25 them into `$GIT_DIR` relative paths
26 (e.g. `refs/heads/foo`). When `<refspec>...` is empty
27 the returned list of refs consists of the defaults
28 for the given `<repo>`, if specified in
de3820f5
JH
29 `$GIT_DIR/remotes/`, `$GIT_DIR/branches/`, or `remote.*.fetch`
30 configuration.
5077fa9c
JH
31
32get_remote_refs_for_push::
33 Given the list of user-supplied `<repo> <refspec>...`,
34 return the list of refs to push in a form suitable to be
35 fed to the `git-send-pack` command. When `<refspec>...`
36 is empty the returned list of refs consists of the
37 defaults for the given `<repo>`, if specified in
38 `$GIT_DIR/remotes/`.
39
40Author
41------
42Written by Junio C Hamano.
43
44Documentation
45--------------
46Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
47
48GIT
49---
5162e697 50Part of the linkgit:git[7] suite