get_sha1: warn about full or short object names that look like refs
[gitweb.git] / advice.c
index 780f58da0f5b508eaa278c98dd15bdf6f919c468..22abde9bc4edc5d90fa8e12e5e27654948955b23 100644 (file)
--- a/advice.c
+++ b/advice.c
@@ -12,6 +12,7 @@ int advice_commit_before_merge = 1;
 int advice_resolve_conflict = 1;
 int advice_implicit_identity = 1;
 int advice_detached_head = 1;
+int advice_object_name_warning = 1;
 
 static struct {
        const char *name;
@@ -29,6 +30,7 @@ static struct {
        { "resolveconflict", &advice_resolve_conflict },
        { "implicitidentity", &advice_implicit_identity },
        { "detachedhead", &advice_detached_head },
+       { "object_name_warning", &advice_object_name_warning },
 
        /* make this an alias for backward compatibility */
        { "pushnonfastforward", &advice_push_update_rejected }