git-parse-remote - Routines to help parsing $GIT_DIR/remotes/
. git-parse-remote
This script is included in various scripts to supply routines to parse files under $GIT_DIR/remotes/ and $GIT_DIR/branches/.
The primary entry points are:
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/ or $GIT_DIR/branches/.
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/.
Written by Junio C Hamano.
Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
Part of the git(7) suite