2005-09-08 02:26:23 +02:00
|
|
|
git-parse-remote(1)
|
|
|
|
===================
|
2005-09-07 23:08:38 +02:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2007-01-19 00:53:37 +01:00
|
|
|
git-parse-remote - Routines to help parsing remote repository access parameters
|
2005-09-07 23:08:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2005-09-08 02:26:23 +02:00
|
|
|
'. git-parse-remote'
|
2005-09-07 23:08:38 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
This script is included in various scripts to supply
|
|
|
|
routines to parse files under $GIT_DIR/remotes/ and
|
2007-01-17 22:06:32 +01:00
|
|
|
$GIT_DIR/branches/ and configuration variables that are related
|
|
|
|
to fetching, pulling and pushing.
|
2005-09-07 23:08:38 +02:00
|
|
|
|
|
|
|
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
|
2007-01-17 22:06:32 +01:00
|
|
|
`$GIT_DIR/remotes/`, `$GIT_DIR/branches/`, or `remote.*.fetch`
|
|
|
|
configuration.
|
2005-09-07 23:08:38 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
---
|
2007-12-29 07:20:38 +01:00
|
|
|
Part of the linkgit:git[7] suite
|