aboutsummaryrefslogtreecommitdiffstats
path: root/advice.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2013-04-02 15:05:12 -0400
committerJunio C Hamano <gitster@pobox.com>2013-04-02 16:14:13 -0700
commitcaa2036b3b4105bfe34f01115e4fb34b78a4db86 (patch)
treee2a550e4a13ce962cce354347fc890be9b36eb80 /advice.h
parent1a15d00bb910de0a86981f0d75836feac71d1fe0 (diff)
downloadgit-caa2036b3b4105bfe34f01115e4fb34b78a4db86.tar.gz
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>
Diffstat (limited to 'advice.h')
-rw-r--r--advice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/advice.h b/advice.h
index af0c983c68..94caa32f92 100644
--- a/advice.h
+++ b/advice.h
@@ -16,6 +16,7 @@ extern int advice_commit_before_merge;
extern int advice_resolve_conflict;
extern int advice_implicit_identity;
extern int advice_detached_head;
+extern int advice_set_upstream_failure;
int git_default_advice_config(const char *var, const char *value);
void advise(const char *advice, ...);