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