Fossil SCM

Simplify the previous check-in.

mistachkin 2016-01-13 06:19 UTC sqlCmdNoRepo
Commit 384482a87c077666f965e108713815bd371816bf
1 file changed +1 -3
+1 -3
--- src/sqlcmd.c
+++ src/sqlcmd.c
@@ -197,14 +197,12 @@
197197
**
198198
** CREATE VIRTUAL TABLE temp.foci USING files_of_checkin;
199199
** SELECT * FROM foci WHERE checkinID=symbolic_name_to_rid('trunk');
200200
*/
201201
void cmd_sqlite3(void){
202
- int noRepository;
203202
extern int sqlite3_shell(int, char**);
204
- noRepository = find_option("no-repository", 0, 0)!=0;
205
- if( !noRepository ){
203
+ if( !find_option("no-repository", 0, 0)!=0 ){
206204
db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
207205
db_close(1);
208206
}
209207
sqlite3_shutdown();
210208
sqlite3_shell(g.argc-1, g.argv+1);
211209
--- src/sqlcmd.c
+++ src/sqlcmd.c
@@ -197,14 +197,12 @@
197 **
198 ** CREATE VIRTUAL TABLE temp.foci USING files_of_checkin;
199 ** SELECT * FROM foci WHERE checkinID=symbolic_name_to_rid('trunk');
200 */
201 void cmd_sqlite3(void){
202 int noRepository;
203 extern int sqlite3_shell(int, char**);
204 noRepository = find_option("no-repository", 0, 0)!=0;
205 if( !noRepository ){
206 db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
207 db_close(1);
208 }
209 sqlite3_shutdown();
210 sqlite3_shell(g.argc-1, g.argv+1);
211
--- src/sqlcmd.c
+++ src/sqlcmd.c
@@ -197,14 +197,12 @@
197 **
198 ** CREATE VIRTUAL TABLE temp.foci USING files_of_checkin;
199 ** SELECT * FROM foci WHERE checkinID=symbolic_name_to_rid('trunk');
200 */
201 void cmd_sqlite3(void){
 
202 extern int sqlite3_shell(int, char**);
203 if( !find_option("no-repository", 0, 0)!=0 ){
 
204 db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
205 db_close(1);
206 }
207 sqlite3_shutdown();
208 sqlite3_shell(g.argc-1, g.argv+1);
209

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button