path: root/advice.h
diff options
authorJeff King <>2013-04-02 19:05:12 (GMT)
committerJunio C Hamano <>2013-04-02 23:14:13 (GMT)
commitcaa2036b3b4105bfe34f01115e4fb34b78a4db86 (patch)
treee2a550e4a13ce962cce354347fc890be9b36eb80 /advice.h
parent1a15d00bb910de0a86981f0d75836feac71d1fe0 (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'advice.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/advice.h b/advice.h
index af0c983..94caa32 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, ...);