Skip to content

Commit f394e09

Browse files
newrengitster
authored andcommitted
treewide: be explicit about dependence on gettext.h
Dozens of files made use of gettext functions, without explicitly including gettext.h. This made it more difficult to find which files could remove a dependence on cache.h. Make C files explicitly include gettext.h if they are using it. However, while compat/fsmonitor/fsm-ipc-darwin.c should also gain an include of gettext.h, it was left out to avoid conflicting with an in-flight topic. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a6dc3d3 commit f394e09

File tree

235 files changed

+236
-1
lines changed

Some content is hidden

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

235 files changed

+236
-1
lines changed

add-interactive.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "color.h"
44
#include "config.h"
55
#include "diffcore.h"
6+
#include "gettext.h"
67
#include "hex.h"
78
#include "revision.h"
89
#include "refs.h"

add-patch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "cache.h"
22
#include "add-interactive.h"
33
#include "alloc.h"
4+
#include "gettext.h"
45
#include "strbuf.h"
56
#include "run-command.h"
67
#include "strvec.h"

apply.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "delta.h"
1616
#include "diff.h"
1717
#include "dir.h"
18+
#include "gettext.h"
1819
#include "hex.h"
1920
#include "xdiff-interface.h"
2021
#include "ll-merge.h"

archive-tar.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "git-compat-util.h"
55
#include "alloc.h"
66
#include "config.h"
7+
#include "gettext.h"
78
#include "hex.h"
89
#include "tar.h"
910
#include "archive.h"

archive-zip.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "cache.h"
55
#include "config.h"
66
#include "archive.h"
7+
#include "gettext.h"
78
#include "hex.h"
89
#include "streaming.h"
910
#include "utf8.h"

archive.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "git-compat-util.h"
22
#include "alloc.h"
33
#include "config.h"
4+
#include "gettext.h"
45
#include "hex.h"
56
#include "refs.h"
67
#include "object-store.h"

attr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "exec-cmd.h"
1313
#include "attr.h"
1414
#include "dir.h"
15+
#include "gettext.h"
1516
#include "utf8.h"
1617
#include "quote.h"
1718
#include "revision.h"

bisect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "config.h"
33
#include "commit.h"
44
#include "diff.h"
5+
#include "gettext.h"
56
#include "hex.h"
67
#include "revision.h"
78
#include "refs.h"

blame.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "mergesort.h"
66
#include "diff.h"
77
#include "diffcore.h"
8+
#include "gettext.h"
89
#include "hex.h"
910
#include "tag.h"
1011
#include "blame.h"

branch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "cache.h"
33
#include "config.h"
44
#include "branch.h"
5+
#include "gettext.h"
56
#include "hex.h"
67
#include "refs.h"
78
#include "refspec.h"

0 commit comments

Comments
 (0)