summaryrefslogtreecommitdiff
path: root/quote.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-20 09:54:34 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-24 23:50:50 (GMT)
commit853a3697dc2bc609650c38ed03a1f8fa9f145f97 (patch)
tree81a66a41912fe8e57d08540f5fc6807f5b76a042 /quote.h
parentac4b0cff00b7629657e61a1d6e1f1a1250d03198 (diff)
downloadgit-853a3697dc2bc609650c38ed03a1f8fa9f145f97.zip
git-853a3697dc2bc609650c38ed03a1f8fa9f145f97.tar.gz
git-853a3697dc2bc609650c38ed03a1f8fa9f145f97.tar.bz2
[PATCH] Multi-head fetch.
Traditionally, fetch takes these forms: $ git fetch <remote> $ git fetch <remote> <head> $ git fetch <remote> tag <tag> This patch updates it to take $ git fetch <remote> <refspec>... where: - A <refspec> of form "<src>:<dst>" is to fetch the objects needed for the remote ref that matches <src>, and if <dst> is not empty, store it as a local <dst>. - "tag" followed by <next> is just an old way of saying "refs/tags/<next>:refs/tags/<next>"; this mimics the current behaviour of the third form above and means "fetch that tag and store it under the same name". - A single token <refspec> without colon is a shorthand for "<refspec>:" That is, "fetch that ref but do not store anywhere". - when there is no <refspec> specified - if <remote> is the name of a file under $GIT_DIR/remotes/ (i.e. a new-style shorthand), then it is the same as giving the <refspec>s listed on Pull: line in that file. - if <remote> is the name of a file under $GIT_DIR/branches/ (i.e. an old-style shorthand, without trailing path), then it is the same as giving a single <refspec> "<remote-name>:refs/heads/<remote>" on the command line, where <remote-name> is the remote branch name (defaults to HEAD, but can be overridden by .git/branches/<remote> file having the URL fragment notation). That is, "fetch that branch head and store it in refs/heads/<remote>". - otherwise, it is the same as giving a single <refspec> that is "HEAD:". The SHA1 object names of fetched refs are stored in FETCH_HEAD, one name per line, with a comment to describe where it came from. This is later used by "git resolve" and "git octopus". Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'quote.h')
0 files changed, 0 insertions, 0 deletions