summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e47afdf)
raw | patch | inline | side by side (parent: e47afdf)
author | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 14 Sep 2007 13:57:42 +0000 (15:57 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 14 Sep 2007 13:57:42 +0000 (15:57 +0200) |
tig.c | patch | blob | history |
index 0390b3a00276a2ce4060daf9bd323aedd45e6f04..05ec10c7b407736d111be1e927fe6b182af74f6e 100644 (file)
--- a/tig.c
+++ b/tig.c
#define COLOR_DEFAULT (-1)
#define ICONV_NONE ((iconv_t) -1)
+#ifndef ICONV_CONST
+#define ICONV_CONST /* nothing */
+#endif
/* The format and size of the date column in the main view. */
#define DATE_FORMAT "%Y-%m-%d %H:%M"
if (load_repo_info() == ERR)
die("Failed to load repo info.");
- /* Require a git repository unless when running in pager mode. */
- if (!opt_git_dir[0])
- die("Not a git repository");
-
if (load_options() == ERR)
die("Failed to load user config.");
if (!parse_options(argc, argv))
return 0;
+ /* Require a git repository unless when running in pager mode. */
+ if (!opt_git_dir[0])
+ die("Not a git repository");
+
if (*opt_codeset && strcmp(opt_codeset, opt_encoding)) {
opt_iconv = iconv_open(opt_codeset, opt_encoding);
if (opt_iconv == ICONV_NONE)