Skip to content

Commit f31d23a

Browse files
committed
Merge branch 'bw/config-h'
Fix configuration codepath to pay proper attention to commondir that is used in multi-worktree situation, and isolate config API into its own header file. * bw/config-h: config: don't implicitly use gitdir or commondir config: respect commondir setup: teach discover_git_directory to respect the commondir config: don't include config.h by default config: remove git_config_iter config: create config.h
2 parents 5812b3f + dc8441f commit f31d23a

File tree

147 files changed

+397
-229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+397
-229
lines changed

advice.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "cache.h"
2+
#include "config.h"
23

34
int advice_push_update_rejected = 1;
45
int advice_push_non_ff_current = 1;

alias.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "cache.h"
2+
#include "config.h"
23

34
struct config_alias_data {
45
const char *alias;

apply.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99

1010
#include "cache.h"
11+
#include "config.h"
1112
#include "blob.h"
1213
#include "delta.h"
1314
#include "diff.h"

archive-tar.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright (c) 2005, 2006 Rene Scharfe
33
*/
44
#include "cache.h"
5+
#include "config.h"
56
#include "tar.h"
67
#include "archive.h"
78
#include "streaming.h"

archive-zip.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright (c) 2006 Rene Scharfe
33
*/
44
#include "cache.h"
5+
#include "config.h"
56
#include "archive.h"
67
#include "streaming.h"
78
#include "utf8.h"

archive.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "cache.h"
2+
#include "config.h"
23
#include "refs.h"
34
#include "commit.h"
45
#include "tree-walk.h"

attr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#define NO_THE_INDEX_COMPATIBILITY_MACROS
1111
#include "cache.h"
12+
#include "config.h"
1213
#include "exec_cmd.h"
1314
#include "attr.h"
1415
#include "dir.h"

bisect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "cache.h"
2+
#include "config.h"
23
#include "commit.h"
34
#include "diff.h"
45
#include "revision.h"

branch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "git-compat-util.h"
22
#include "cache.h"
3+
#include "config.h"
34
#include "branch.h"
45
#include "refs.h"
56
#include "remote.h"

builtin/add.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Copyright (C) 2006 Linus Torvalds
55
*/
66
#include "cache.h"
7+
#include "config.h"
78
#include "builtin.h"
89
#include "lockfile.h"
910
#include "dir.h"

0 commit comments

Comments
 (0)