Thread (63 messages) flat view 63 messages, 6 authors, 2022-07-21
STALE1507d

[PATCH 2/8] remote: warn about unhandled branch.<name>.rebase values

From: Johannes Schindelin via GitGitGadget <hidden>
Date: 2019-11-23 20:50:50
Subsystem: the rest · Maintainer: Linus Torvalds

From: Johannes Schindelin <redacted>

We ignore them silently, but it actually makes sense to warn the users
that their config setting has no effect.

Signed-off-by: Johannes Schindelin <redacted>
---
 builtin/remote.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/builtin/remote.c b/builtin/remote.c
index 5591cef775..3410ea19c7 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -315,6 +315,9 @@ static int config_read_branches(const char *key, const char *value, void *cb)
 				info->rebase = REBASE_MERGES;
 			else if (!strcmp(value, "interactive"))
 				info->rebase = INTERACTIVE_REBASE;
+			else
+				warning(_("unhandled branch.%s.rebase=%s"),
+					name, value);
 		}
 	}
 	return 0;
-- 
gitgitgadget
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help