aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-parse-remote.txt
blob: 951dbd6c830a15cafaa7281cb1c6de357d97b4cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
git-parse-remote(1)
===================

NAME
----
git-parse-remote - Routines to help parsing remote repository access parameters


SYNOPSIS
--------
'. git-parse-remote'

DESCRIPTION
-----------
This script is included in various scripts to supply
routines to parse files under $GIT_DIR/remotes/ and
$GIT_DIR/branches/ and configuration variables that are related
to fetching, pulling and pushing.

The primary entry points are:

get_remote_refs_for_fetch::
	Given the list of user-supplied `<repo> <refspec>...`,
	return the list of refs to fetch after canonicalizing
	them into `$GIT_DIR` relative paths
	(e.g. `refs/heads/foo`).  When `<refspec>...` is empty
	the returned list of refs consists of the defaults
	for the given `<repo>`, if specified in
	`$GIT_DIR/remotes/`, `$GIT_DIR/branches/`, or `remote.*.fetch`
	configuration.

get_remote_refs_for_push::
	Given the list of user-supplied `<repo> <refspec>...`,
	return the list of refs to push in a form suitable to be
	fed to the `git-send-pack` command.  When `<refspec>...`
	is empty the returned list of refs consists of the
	defaults for the given `<repo>`, if specified in
	`$GIT_DIR/remotes/`.

Author
------
Written by Junio C Hamano.

Documentation
--------------
Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.

GIT
---
Part of the linkgit:git[1] suite