Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-parse-remote(1) |
| 2 | =================== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 7c73c66 | 2007-01-19 00:37:50 | [diff] [blame] | 6 | git-parse-remote - Routines to help parsing remote repository access parameters |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
| 11 | '. git-parse-remote' |
| 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 15 | This script is included in various scripts to supply |
| 16 | routines to parse files under $GIT_DIR/remotes/ and |
Junio C Hamano | e58607f | 2007-01-17 23:27:45 | [diff] [blame] | 17 | $GIT_DIR/branches/ and configuration variables that are related |
| 18 | to fetching, pulling and pushing. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 19 | |
| 20 | The primary entry points are: |
| 21 | |
| 22 | get_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 |
Junio C Hamano | e58607f | 2007-01-17 23:27:45 | [diff] [blame] | 29 | `$GIT_DIR/remotes/`, `$GIT_DIR/branches/`, or `remote.*.fetch` |
| 30 | configuration. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 31 | |
| 32 | get_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 | |
| 40 | Author |
| 41 | ------ |
| 42 | Written by Junio C Hamano. |
| 43 | |
| 44 | Documentation |
| 45 | -------------- |
| 46 | Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>. |
| 47 | |
| 48 | GIT |
| 49 | --- |
Junio C Hamano | 35738e8 | 2008-01-07 07:55:46 | [diff] [blame] | 50 | Part of the linkgit:git[7] suite |