]> git.ipfire.org Git - thirdparty/git.git/commit - branch.c
branch: give advice when tracking start-point is missing
authorJeff King <peff@peff.net>
Tue, 2 Apr 2013 19:05:12 +0000 (15:05 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2013 23:14:13 +0000 (16:14 -0700)
commitcaa2036b3b4105bfe34f01115e4fb34b78a4db86
treee2a550e4a13ce962cce354347fc890be9b36eb80
parent1a15d00bb910de0a86981f0d75836feac71d1fe0
branch: give advice when tracking start-point is missing

If the user requests to --set-upstream-to a branch that does
not exist, then either:

  1. It was a typo.

  2. They thought the branch should exist.

In case (1), there is not much we can do beyond showing the
name we tried to use. For case (2), though, we can help to
guide them through common workflows.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
advice.c
advice.h
branch.c