6 git-parse-remote - Routines to help parsing $GIT_DIR/remotes/
15 This script is included in various scripts to supply
16 routines to parse files under $GIT_DIR/remotes/ and
19 The primary entry points are:
21 get_remote_refs_for_fetch::
22 Given the list of user-supplied `<repo> <refspec>...`,
23 return the list of refs to fetch after canonicalizing
24 them into `$GIT_DIR` relative paths
25 (e.g. `refs/heads/foo`). When `<refspec>...` is empty
26 the returned list of refs consists of the defaults
27 for the given `<repo>`, if specified in
28 `$GIT_DIR/remotes/` or `$GIT_DIR/branches/`.
30 get_remote_refs_for_push::
31 Given the list of user-supplied `<repo> <refspec>...`,
32 return the list of refs to push in a form suitable to be
33 fed to the `git-send-pack` command. When `<refspec>...`
34 is empty the returned list of refs consists of the
35 defaults for the given `<repo>`, if specified in
40 Written by Junio C Hamano.
44 Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
48 Part of the link:git.html[git] suite