From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Sufiev Subject: [PATCH I18N filenames v2 2/3] Use I18N-wrappers everywhere in Git Date: Wed, 28 Oct 2009 21:01:39 +0300 Message-ID: <1256752900-2615-2-git-send-email-timur@iris-comp.ru> References: <1256752900-2615-1-git-send-email-timur@iris-comp.ru> Cc: Timur Sufiev To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Oct 28 19:02:03 2009 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1N3CqO-0005ni-5w for gcvg-git-2@lo.gmane.org; Wed, 28 Oct 2009 19:02:00 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752243AbZJ1SBv (ORCPT ); Wed, 28 Oct 2009 14:01:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751992AbZJ1SBv (ORCPT ); Wed, 28 Oct 2009 14:01:51 -0400 Received: from [195.93.180.178] ([195.93.180.178]:58940 "EHLO mail.iris-comp.ru" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751966AbZJ1SBo (ORCPT ); Wed, 28 Oct 2009 14:01:44 -0400 Received: from localhost (unknown [80.90.116.82]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.iris-comp.ru (Postfix) with ESMTPSA id F1598E9AE; Wed, 28 Oct 2009 21:01:43 +0300 (MSK) X-Mailer: git-send-email 1.6.5.1 In-Reply-To: <1256752900-2615-1-git-send-email-timur@iris-comp.ru> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Timur Sufiev --- abspath.c | 1 + attr.c | 1 + bisect.c | 1 + branch.c | 1 + builtin-add.c | 1 + builtin-apply.c | 1 + builtin-archive.c | 1 + builtin-blame.c | 1 + builtin-clean.c | 1 + builtin-clone.c | 1 + builtin-commit.c | 1 + builtin-count-objects.c | 1 + builtin-diff.c | 1 + builtin-fast-export.c | 1 + builtin-fetch--tool.c | 1 + builtin-fetch-pack.c | 1 + builtin-fetch.c | 1 + builtin-fmt-merge-msg.c | 1 + builtin-fsck.c | 1 + builtin-gc.c | 1 + builtin-grep.c | 1 + builtin-help.c | 1 + builtin-init-db.c | 1 + builtin-ls-files.c | 1 + builtin-mailinfo.c | 1 + builtin-mailsplit.c | 1 + builtin-merge-file.c | 1 + builtin-merge.c | 1 + builtin-mv.c | 1 + builtin-pack-objects.c | 1 + builtin-prune-packed.c | 1 + builtin-prune.c | 1 + builtin-reflog.c | 1 + builtin-remote.c | 1 + builtin-rerere.c | 1 + builtin-rm.c | 1 + builtin-tag.c | 1 + builtin-update-index.c | 1 + builtin-verify-tag.c | 1 + bundle.c | 1 + check-racy.c | 1 + combine-diff.c | 1 + commit.c | 1 + config.c | 1 + copy.c | 1 + daemon.c | 1 + diff-lib.c | 1 + diff-no-index.c | 1 + diff.c | 1 + diffcore-order.c | 1 + dir.c | 1 + entry.c | 1 + fast-import.c | 1 + hash-object.c | 1 + help.c | 1 + http.c | 1 + index-pack.c | 1 + ll-merge.c | 1 + lockfile.c | 1 + mailmap.c | 1 + merge-recursive.c | 1 + pack-write.c | 1 + path.c | 1 + preload-index.c | 1 + read-cache.c | 1 + refs.c | 1 + remote.c | 1 + rerere.c | 1 + server-info.c | 1 + setup.c | 1 + sha1_file.c | 1 + sha1_name.c | 1 + shallow.c | 1 + strbuf.c | 1 + symlinks.c | 1 + test-chmtime.c | 1 + test-delta.c | 1 + trace.c | 1 + transport.c | 1 + unpack-trees.c | 1 + wrapper.c | 1 + xdiff-interface.c | 1 + 82 files changed, 82 insertions(+), 0 deletions(-) diff --git a/abspath.c b/abspath.c index b88122c..b672c18 100644 --- a/abspath.c +++ b/abspath.c @@ -1,4 +1,5 @@ #include "cache.h" +#include "io-i18n.h" /* * Do not use this for inspecting *tracked* content. When path is a diff --git a/attr.c b/attr.c index 55bdb7c..6422254 100644 --- a/attr.c +++ b/attr.c @@ -1,6 +1,7 @@ #define NO_THE_INDEX_COMPATIBILITY_MACROS #include "cache.h" #include "attr.h" +#include "io-i18n.h" const char git_attr__true[] = "(builtin)true"; const char git_attr__false[] = "\0(builtin)false"; diff --git a/bisect.c b/bisect.c index dc18db8..fe9fbb5 100644 --- a/bisect.c +++ b/bisect.c @@ -9,6 +9,7 @@ #include "run-command.h" #include "log-tree.h" #include "bisect.h" +#include "io-i18n.h" struct sha1_array { unsigned char (*sha1)[20]; diff --git a/branch.c b/branch.c index 05ef3f5..1569809 100644 --- a/branch.c +++ b/branch.c @@ -3,6 +3,7 @@ #include "refs.h" #include "remote.h" #include "commit.h" +#include "io-i18n.h" struct tracking { struct refspec spec; diff --git a/builtin-add.c b/builtin-add.c index cb6e590..027170c 100644 --- a/builtin-add.c +++ b/builtin-add.c @@ -12,6 +12,7 @@ #include "parse-options.h" #include "diff.h" #include "revision.h" +#include "io-i18n.h" static const char * const builtin_add_usage[] = { "git add [options] [--] ...", diff --git a/builtin-apply.c b/builtin-apply.c index f667368..7d2f4f4 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -15,6 +15,7 @@ #include "string-list.h" #include "dir.h" #include "parse-options.h" +#include "io-i18n.h" /* * --check turns on checking that the working tree matches the diff --git a/builtin-archive.c b/builtin-archive.c index 12351e9..528676e 100644 --- a/builtin-archive.c +++ b/builtin-archive.c @@ -8,6 +8,7 @@ #include "parse-options.h" #include "pkt-line.h" #include "sideband.h" +#include "io-i18n.h" static void create_output_file(const char *output_file) { diff --git a/builtin-blame.c b/builtin-blame.c index 7512773..d349198 100644 --- a/builtin-blame.c +++ b/builtin-blame.c @@ -20,6 +20,7 @@ #include "mailmap.h" #include "parse-options.h" #include "utf8.h" +#include "io-i18n.h" static char blame_usage[] = "git blame [options] [rev-opts] [rev] [--] file"; diff --git a/builtin-clean.c b/builtin-clean.c index 28cdcd0..37293f7 100644 --- a/builtin-clean.c +++ b/builtin-clean.c @@ -11,6 +11,7 @@ #include "dir.h" #include "parse-options.h" #include "quote.h" +#include "io-i18n.h" static int force = -1; /* unset */ diff --git a/builtin-clone.c b/builtin-clone.c index 5762a6f..5949438 100644 --- a/builtin-clone.c +++ b/builtin-clone.c @@ -23,6 +23,7 @@ #include "branch.h" #include "remote.h" #include "run-command.h" +#include "io-i18n.h" /* * Overall FIXMEs: diff --git a/builtin-commit.c b/builtin-commit.c index 200ffda..a124d88 100644 --- a/builtin-commit.c +++ b/builtin-commit.c @@ -24,6 +24,7 @@ #include "string-list.h" #include "rerere.h" #include "unpack-trees.h" +#include "io-i18n.h" static const char * const builtin_commit_usage[] = { "git commit [options] [--] ...", diff --git a/builtin-count-objects.c b/builtin-count-objects.c index 1b0b6c8..dde93dc 100644 --- a/builtin-count-objects.c +++ b/builtin-count-objects.c @@ -8,6 +8,7 @@ #include "dir.h" #include "builtin.h" #include "parse-options.h" +#include "io-i18n.h" static void count_objects(DIR *d, char *path, int len, int verbose, unsigned long *loose, diff --git a/builtin-diff.c b/builtin-diff.c index ffcdd05..49748f0 100644 --- a/builtin-diff.c +++ b/builtin-diff.c @@ -13,6 +13,7 @@ #include "revision.h" #include "log-tree.h" #include "builtin.h" +#include "io-i18n.h" struct blobinfo { unsigned char sha1[20]; diff --git a/builtin-fast-export.c b/builtin-fast-export.c index b0a4029..932b964 100644 --- a/builtin-fast-export.c +++ b/builtin-fast-export.c @@ -16,6 +16,7 @@ #include "string-list.h" #include "utf8.h" #include "parse-options.h" +#include "io-i18n.h" static const char *fast_export_usage[] = { "git fast-export [rev-list-opts]", diff --git a/builtin-fetch--tool.c b/builtin-fetch--tool.c index 3dbdf7a..91b774d 100644 --- a/builtin-fetch--tool.c +++ b/builtin-fetch--tool.c @@ -3,6 +3,7 @@ #include "refs.h" #include "commit.h" #include "sigchain.h" +#include "io-i18n.h" static char *get_stdin(void) { diff --git a/builtin-fetch-pack.c b/builtin-fetch-pack.c index 629735f..aecc2f4 100644 --- a/builtin-fetch-pack.c +++ b/builtin-fetch-pack.c @@ -9,6 +9,7 @@ #include "fetch-pack.h" #include "remote.h" #include "run-command.h" +#include "io-i18n.h" static int transfer_unpack_limit = -1; static int fetch_unpack_limit = -1; diff --git a/builtin-fetch.c b/builtin-fetch.c index a35a6f8..14e7f79 100644 --- a/builtin-fetch.c +++ b/builtin-fetch.c @@ -11,6 +11,7 @@ #include "run-command.h" #include "parse-options.h" #include "sigchain.h" +#include "io-i18n.h" static const char * const builtin_fetch_usage[] = { "git fetch [options] [ ...]", diff --git a/builtin-fmt-merge-msg.c b/builtin-fmt-merge-msg.c index 9d52400..c002968 100644 --- a/builtin-fmt-merge-msg.c +++ b/builtin-fmt-merge-msg.c @@ -4,6 +4,7 @@ #include "diff.h" #include "revision.h" #include "tag.h" +#include "io-i18n.h" static const char * const fmt_merge_msg_usage[] = { "git fmt-merge-msg [--log|--no-log] [--file ]", diff --git a/builtin-fsck.c b/builtin-fsck.c index 2d88e45..67d0826 100644 --- a/builtin-fsck.c +++ b/builtin-fsck.c @@ -11,6 +11,7 @@ #include "fsck.h" #include "parse-options.h" #include "dir.h" +#include "io-i18n.h" #define REACHABLE 0x0001 #define SEEN 0x0002 diff --git a/builtin-gc.c b/builtin-gc.c index 093517e..e66c817 100644 --- a/builtin-gc.c +++ b/builtin-gc.c @@ -14,6 +14,7 @@ #include "cache.h" #include "parse-options.h" #include "run-command.h" +#include "io-i18n.h" #define FAILED_RUN "failed to run %s" diff --git a/builtin-grep.c b/builtin-grep.c index 1df25b0..3f37fab 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -14,6 +14,7 @@ #include "userdiff.h" #include "grep.h" #include "quote.h" +#include "io-i18n.h" #ifndef NO_EXTERNAL_GREP #ifdef __unix__ diff --git a/builtin-help.c b/builtin-help.c index e1eba77..7d54179 100644 --- a/builtin-help.c +++ b/builtin-help.c @@ -10,6 +10,7 @@ #include "parse-options.h" #include "run-command.h" #include "help.h" +#include "io-i18n.h" static struct man_viewer_list { struct man_viewer_list *next; diff --git a/builtin-init-db.c b/builtin-init-db.c index dd84cae..61b3f28 100644 --- a/builtin-init-db.c +++ b/builtin-init-db.c @@ -7,6 +7,7 @@ #include "builtin.h" #include "exec_cmd.h" #include "parse-options.h" +#include "io-i18n.h" #ifndef DEFAULT_GIT_TEMPLATE_DIR #define DEFAULT_GIT_TEMPLATE_DIR "/usr/share/git-core/templates" diff --git a/builtin-ls-files.c b/builtin-ls-files.c index c5c0407..3669d37 100644 --- a/builtin-ls-files.c +++ b/builtin-ls-files.c @@ -11,6 +11,7 @@ #include "builtin.h" #include "tree.h" #include "parse-options.h" +#include "io-i18n.h" static int abbrev; static int show_deleted; diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c index c90cd31..a5f6160 100644 --- a/builtin-mailinfo.c +++ b/builtin-mailinfo.c @@ -6,6 +6,7 @@ #include "builtin.h" #include "utf8.h" #include "strbuf.h" +#include "io-i18n.h" static FILE *cmitmsg, *patchfile, *fin, *fout; diff --git a/builtin-mailsplit.c b/builtin-mailsplit.c index dfe5b15..637a0f9 100644 --- a/builtin-mailsplit.c +++ b/builtin-mailsplit.c @@ -8,6 +8,7 @@ #include "builtin.h" #include "string-list.h" #include "strbuf.h" +#include "io-i18n.h" static const char git_mailsplit_usage[] = "git mailsplit [-d] [-f] [-b] -o [|...]"; diff --git a/builtin-merge-file.c b/builtin-merge-file.c index afd2ea7..d986758 100644 --- a/builtin-merge-file.c +++ b/builtin-merge-file.c @@ -3,6 +3,7 @@ #include "xdiff/xdiff.h" #include "xdiff-interface.h" #include "parse-options.h" +#include "io-i18n.h" static const char *const merge_file_usage[] = { "git merge-file [options] [-L name1 [-L orig [-L name2]]] file1 orig_file file2", diff --git a/builtin-merge.c b/builtin-merge.c index b6b8428..2759c25 100644 --- a/builtin-merge.c +++ b/builtin-merge.c @@ -24,6 +24,7 @@ #include "rerere.h" #include "help.h" #include "merge-recursive.h" +#include "io-i18n.h" #define DEFAULT_TWOHEAD (1<<0) #define DEFAULT_OCTOPUS (1<<1) diff --git a/builtin-mv.c b/builtin-mv.c index 1b20028..8ce8dfd 100644 --- a/builtin-mv.c +++ b/builtin-mv.c @@ -9,6 +9,7 @@ #include "cache-tree.h" #include "string-list.h" #include "parse-options.h" +#include "io-i18n.h" static const char * const builtin_mv_usage[] = { "git mv [options] ... ", diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c index 02f9246..2fe3e64 100644 --- a/builtin-pack-objects.c +++ b/builtin-pack-objects.c @@ -16,6 +16,7 @@ #include "list-objects.h" #include "progress.h" #include "refs.h" +#include "io-i18n.h" #ifdef THREADED_DELTA_SEARCH #include "thread-utils.h" diff --git a/builtin-prune-packed.c b/builtin-prune-packed.c index be99eb0..30f5a8a 100644 --- a/builtin-prune-packed.c +++ b/builtin-prune-packed.c @@ -2,6 +2,7 @@ #include "cache.h" #include "progress.h" #include "parse-options.h" +#include "io-i18n.h" static const char * const prune_packed_usage[] = { "git prune-packed [-n|--dry-run] [-q|--quiet]", diff --git a/builtin-prune.c b/builtin-prune.c index 8459aec..bfb7eee 100644 --- a/builtin-prune.c +++ b/builtin-prune.c @@ -6,6 +6,7 @@ #include "reachable.h" #include "parse-options.h" #include "dir.h" +#include "io-i18n.h" static const char * const prune_usage[] = { "git prune [-n] [-v] [--expire