author | Junio C Hamano <junkio@cox.net> | |
Sat, 20 Aug 2005 10:00:03 +0000 (03:00 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 24 Aug 2005 23:50:51 +0000 (16:50 -0700) | ||
commit | 92c533ef0ea2cb43f0d7d493f006f5b4dfa7cda1 | |
tree | db8870719dbc80c883137397b3af686cc9719c43 | tree | snapshot |
parent | d9f3be7e2e4c9b402bbe6ee6e2b39b2ee89132cf | commit | diff |
[PATCH] Make "git pull" and "git fetch" default to origin
Amos Waterland sent in a patch for the pre-multi-head aware
version of "git pull" to do this, but the code changed quite a
bit since then. If there is no argument given to pull from, and
if "origin" makes sense, default to fetch/pull from "origin"
instead of barfing.
[jc: besides, the patch by Amos broke the non-default case where
explicit refspecs are specified, and did not make sure we know
what "origin" means before defaulting to it.]
Signed-off-by: Junio C Hamano <junkio@cox.net>
Amos Waterland sent in a patch for the pre-multi-head aware
version of "git pull" to do this, but the code changed quite a
bit since then. If there is no argument given to pull from, and
if "origin" makes sense, default to fetch/pull from "origin"
instead of barfing.
[jc: besides, the patch by Amos broke the non-default case where
explicit refspecs are specified, and did not make sure we know
what "origin" means before defaulting to it.]
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch-script | diff | blob | history |