Fossil SCM

Style and comment fixes.

mistachkin 2015-04-09 23:21 UTC mvAndRmFiles
Commit 99c57b3eb3f21a061c3c0e41454c9c2fedf9540f
1 file changed +2 -2
+2 -2
--- src/add.c
+++ src/add.c
@@ -463,11 +463,11 @@
463463
/* We should be done with options.. */
464464
verify_all_options();
465465
466466
db_must_be_within_tree();
467467
db_begin_transaction();
468
- if(g.argv[1][0]=='f'){
468
+ if( g.argv[1][0]=='f' ){ /* i.e. "forget" */
469469
removeFiles = 0;
470470
}else if( zMetadataOnly ){
471471
removeFiles = is_false(zMetadataOnly);
472472
}else{
473473
#if FOSSIL_ENABLE_LEGACY_MV_RM
@@ -840,11 +840,11 @@
840840
if( g.argc<4 ){
841841
usage("OLDNAME NEWNAME");
842842
}
843843
zDest = g.argv[g.argc-1];
844844
db_begin_transaction();
845
- if(g.argv[1][0]=='r'){
845
+ if( g.argv[1][0]=='r' ){ /* i.e. "rename" */
846846
moveFiles = 0;
847847
}else if( zMetadataOnly ){
848848
moveFiles = is_false(zMetadataOnly);
849849
}else{
850850
#if FOSSIL_ENABLE_LEGACY_MV_RM
851851
--- src/add.c
+++ src/add.c
@@ -463,11 +463,11 @@
463 /* We should be done with options.. */
464 verify_all_options();
465
466 db_must_be_within_tree();
467 db_begin_transaction();
468 if(g.argv[1][0]=='f'){
469 removeFiles = 0;
470 }else if( zMetadataOnly ){
471 removeFiles = is_false(zMetadataOnly);
472 }else{
473 #if FOSSIL_ENABLE_LEGACY_MV_RM
@@ -840,11 +840,11 @@
840 if( g.argc<4 ){
841 usage("OLDNAME NEWNAME");
842 }
843 zDest = g.argv[g.argc-1];
844 db_begin_transaction();
845 if(g.argv[1][0]=='r'){
846 moveFiles = 0;
847 }else if( zMetadataOnly ){
848 moveFiles = is_false(zMetadataOnly);
849 }else{
850 #if FOSSIL_ENABLE_LEGACY_MV_RM
851
--- src/add.c
+++ src/add.c
@@ -463,11 +463,11 @@
463 /* We should be done with options.. */
464 verify_all_options();
465
466 db_must_be_within_tree();
467 db_begin_transaction();
468 if( g.argv[1][0]=='f' ){ /* i.e. "forget" */
469 removeFiles = 0;
470 }else if( zMetadataOnly ){
471 removeFiles = is_false(zMetadataOnly);
472 }else{
473 #if FOSSIL_ENABLE_LEGACY_MV_RM
@@ -840,11 +840,11 @@
840 if( g.argc<4 ){
841 usage("OLDNAME NEWNAME");
842 }
843 zDest = g.argv[g.argc-1];
844 db_begin_transaction();
845 if( g.argv[1][0]=='r' ){ /* i.e. "rename" */
846 moveFiles = 0;
847 }else if( zMetadataOnly ){
848 moveFiles = is_false(zMetadataOnly);
849 }else{
850 #if FOSSIL_ENABLE_LEGACY_MV_RM
851

Keyboard Shortcuts

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