treewide: be explicit about dependence on gettext.h
commitf394e093df10f1867d9bb2180b3789ee61124aed
authorElijah Newren <newren@gmail.com>
Tue, 21 Mar 2023 06:25:54 +0000 (21 06:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Mar 2023 17:56:51 +0000 (21 10:56 -0700)
treeb2fdeb7d0022089e5b2d80b495bf8966e71a697a
parenta6dc3d364cdf89075582cd521f33d599e6b53cf2
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 <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
235 files changed:
add-interactive.c
add-patch.c
apply.c
archive-tar.c
archive-zip.c
archive.c
attr.c
bisect.c
blame.c
branch.c
builtin/add.c
builtin/am.c
builtin/apply.c
builtin/archive.c
builtin/bisect.c
builtin/blame.c
builtin/branch.c
builtin/bugreport.c
builtin/bundle.c
builtin/cat-file.c
builtin/check-attr.c
builtin/check-ignore.c
builtin/check-mailmap.c
builtin/checkout--worker.c
builtin/checkout-index.c
builtin/checkout.c
builtin/clean.c
builtin/clone.c
builtin/column.c
builtin/commit-graph.c
builtin/commit-tree.c
builtin/commit.c
builtin/config.c
builtin/count-objects.c
builtin/credential-cache--daemon.c
builtin/credential-cache.c
builtin/credential-store.c
builtin/describe.c
builtin/diagnose.c
builtin/diff-tree.c
builtin/diff.c
builtin/difftool.c
builtin/fast-export.c
builtin/fast-import.c
builtin/fetch-pack.c
builtin/fetch.c
builtin/fmt-merge-msg.c
builtin/for-each-ref.c
builtin/for-each-repo.c
builtin/fsck.c
builtin/fsmonitor--daemon.c
builtin/gc.c
builtin/grep.c
builtin/hash-object.c
builtin/help.c
builtin/hook.c
builtin/index-pack.c
builtin/init-db.c
builtin/interpret-trailers.c
builtin/log.c
builtin/ls-files.c
builtin/ls-remote.c
builtin/ls-tree.c
builtin/mailinfo.c
builtin/mailsplit.c
builtin/merge-base.c
builtin/merge-file.c
builtin/merge-recursive.c
builtin/merge-tree.c
builtin/merge.c
builtin/mktag.c
builtin/mktree.c
builtin/multi-pack-index.c
builtin/mv.c
builtin/name-rev.c
builtin/notes.c
builtin/pack-objects.c
builtin/pack-redundant.c
builtin/pack-refs.c
builtin/patch-id.c
builtin/prune-packed.c
builtin/prune.c
builtin/pull.c
builtin/push.c
builtin/range-diff.c
builtin/read-tree.c
builtin/rebase.c
builtin/receive-pack.c
builtin/reflog.c
builtin/remote.c
builtin/repack.c
builtin/replace.c
builtin/rerere.c
builtin/reset.c
builtin/rev-list.c
builtin/rev-parse.c
builtin/revert.c
builtin/rm.c
builtin/shortlog.c
builtin/show-branch.c
builtin/show-index.c
builtin/show-ref.c
builtin/sparse-checkout.c
builtin/stash.c
builtin/stripspace.c
builtin/submodule--helper.c
builtin/symbolic-ref.c
builtin/tag.c
builtin/unpack-objects.c
builtin/update-index.c
builtin/update-ref.c
builtin/update-server-info.c
builtin/upload-pack.c
builtin/verify-commit.c
builtin/verify-pack.c
builtin/verify-tag.c
builtin/worktree.c
builtin/write-tree.c
bulk-checkin.c
bundle-uri.c
bundle.c
chunk-format.c
color.c
commit-graph.c
commit.c
common-main.c
compat/disk.h
compat/fsmonitor/fsm-health-win32.c
compat/fsmonitor/fsm-listen-darwin.c
compat/fsmonitor/fsm-listen-win32.c
compat/fsmonitor/fsm-path-utils-darwin.c
compat/fsmonitor/fsm-path-utils-win32.c
compat/mingw.c
compat/precompose_utf8.c
compat/simple-ipc/ipc-unix-socket.c
compat/simple-ipc/ipc-win32.c
compat/terminal.c
config.c
connect.c
connected.c
convert.c
credential.c
date.c
delta-islands.c
diagnose.c
diff-lib.c
diff-no-index.c
diff.c
dir.c
editor.c
entry.c
environment.c
exec-cmd.c
fetch-pack.c
fsmonitor-ipc.c
git.c
gpg-interface.c
grep.c
http-fetch.c
imap-send.c
list-objects-filter-options.h
list-objects-filter.c
list-objects.c
lockfile.c
ls-refs.c
merge-ort-wrappers.c
merge-ort.c
merge-recursive.c
merge.c
midx.c
name-hash.c
notes-merge.c
notes-utils.c
object-file.c
object-name.c
object.c
pack-bitmap-write.c
pack-bitmap.c
pack-mtimes.c
pack-revindex.c
pack-write.c
packfile.c
parallel-checkout.c
parse-options-cb.c
parse-options.c
parse-options.h
path.c
pathspec.c
pkt-line.c
preload-index.c
pretty.c
promisor-remote.c
prune-packed.c
range-diff.c
reachable.c
read-cache.c
rebase-interactive.c
ref-filter.c
ref-filter.h
reflog.c
refs.c
refs/files-backend.c
refs/packed-backend.c
remote-curl.c
remote.c
replace-object.c
rerere.c
rerere.h
reset.c
revision.c
run-command.c
send-pack.c
sequencer.c
setup.c
sideband.c
sparse-index.c
split-index.c
strbuf.c
submodule-config.c
submodule.c
symlinks.c
t/helper/test-cache-tree.c
t/helper/test-fast-rebase.c
t/helper/test-reach.c
t/helper/test-serve-v2.c
trailer.c
transport-helper.c
tree-walk.c
unpack-trees.c
upload-pack.c
usage.c
walker.c
worktree.c
wrapper.c
wt-status.c