summaryrefslogtreecommitdiff
path: root/fsck.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2012-08-20 13:47:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-08-23 21:18:02 (GMT)
commit6183d826ba62ec94ccfcb8f6e3b8d43e3e338703 (patch)
tree6f951b43796c4d0a2b21a11b74132c81b4915c25 /fsck.h
parent889d35899ba64640e47798681ecb34a4be043bad (diff)
downloadgit-6183d826ba62ec94ccfcb8f6e3b8d43e3e338703.zip
git-6183d826ba62ec94ccfcb8f6e3b8d43e3e338703.tar.gz
git-6183d826ba62ec94ccfcb8f6e3b8d43e3e338703.tar.bz2
branch: introduce --set-upstream-to
The existing --set-uptream option can cause confusion, as it uses the usual branch convention of assuming a starting point of HEAD if none is specified, causing git branch --set-upstream origin/master to create a new local branch 'origin/master' that tracks the current branch. As --set-upstream already exists, we can't simply change its behaviour. To work around this, introduce --set-upstream-to which accepts a compulsory argument indicating what the new upstream branch should be and one optinal argument indicating which branch to change, defaulting to HEAD. The new options allows us to type git branch --set-upstream-to origin/master to set the current branch's upstream to be origin's master. Signed-off-by: Carlos Martín Nieto <cmn@elego.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsck.h')
0 files changed, 0 insertions, 0 deletions