@@ -124,10 +124,11 @@
124 124 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
sqlite3 *dbConfig; /* Separate connection for global_config table */
125 125 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
int useAttach; /* True if global_config is attached to repository */
126 126 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
const char *zConfigDbName;/* Path of the config database. NULL if not open */
127 127 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
sqlite3_int64 now; /* Seconds since 1970 */
128 128 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
int repositoryOpen; /* True if the main repository database is open */
129 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ char *zRepositoryOption; /* Most recent cached repository option value */
129 130 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
char *zRepositoryName; /* Name of the repository database */
130 131 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
const char *zMainDbType;/* "configdb", "localdb", or "repository" */
131 132 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
const char *zConfigDbType; /* "configdb", "localdb", or "repository" */
132 133 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
int localOpen; /* True if the local database is open */
133 134 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
char *zLocalRoot; /* The directory holding the local database */
@@ -796,10 +797,24 @@
796 797 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
break;
797 798 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
798 799 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
799 800 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
return zReturn;
800 801 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
802 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+
803 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ /*
804 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** Look for a repository command-line option. If present, [re-]cache it in
805 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** the global state and return the new pointer, freeing any previous value.
806 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** If absent and there is no cached value, return NULL.
807 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ */
808 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ const char *find_repository_option(){
809 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ const char *zRepository = find_option("repository", "R", 1);
810 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ if( zRepository ){
811 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ if( g.zRepositoryOption ) fossil_free(g.zRepositoryOption);
812 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ g.zRepositoryOption = mprintf("%s", zRepository);
813 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ }
814 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ return g.zRepositoryOption;
815 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ }
801 816 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
802 817 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/*
803 818 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** Verify that there are no unprocessed command-line options. If
804 819 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** Any remaining command-line argument begins with "-" print
805 820 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** an error message and quit.
806 821 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!