Thread (20 messages) flat view 20 messages, 5 authors, 2016-06-15

Re: [PATCH 1/4] config: add include directive

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:52:52

Am 1/26/2012 8:37, schrieb Jeff King:
This patch introduces an include directive for config files.
Nice. I haven't had a need for it, yet, but the concept looks good.
+test_expect_success 'recursive relative paths' '
+	mkdir subdir &&
+	echo "[test]three = 3" >subdir/three &&
+	echo "[include]path = three" >subdir/two &&
+	echo "[include]path = subdir/two" >base &&
+	echo 3 >expect &&
+	git config -f base test.three >actual &&
+	test_cmp expect actual
+'
Isn't it rather "chained relative paths"? Recursive would be if I write

  [include]path = .gitconfig

in my ~/.gitconfig. What happens in this case?

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help