Fossil SCM
Style cleanup (no tabs). No functional change.
Commit
89872d17d1b908cdc16414833f72e234a60c95877c5aff3f9b3a84d4cd31736f
Parent
0d5251d3eecdfc8…
4 files changed
+1
-1
+2
-2
+4
-4
+5
-5
+1
-1
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -2130,11 +2130,11 @@ | ||
| 2130 | 2130 | /* Get the ID of the parent manifest artifact */ |
| 2131 | 2131 | vid = db_lget_int("checkout", 0); |
| 2132 | 2132 | if( vid==0 ){ |
| 2133 | 2133 | useCksum = 1; |
| 2134 | 2134 | if( sCiInfo.zBranch==0 ) { |
| 2135 | - sCiInfo.zBranch=db_get("main-branch", "trunk"); | |
| 2135 | + sCiInfo.zBranch=db_get("main-branch", "trunk"); | |
| 2136 | 2136 | } |
| 2137 | 2137 | }else if( content_is_private(vid) ){ |
| 2138 | 2138 | g.markPrivate = 1; |
| 2139 | 2139 | } |
| 2140 | 2140 | |
| 2141 | 2141 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -2130,11 +2130,11 @@ | |
| 2130 | /* Get the ID of the parent manifest artifact */ |
| 2131 | vid = db_lget_int("checkout", 0); |
| 2132 | if( vid==0 ){ |
| 2133 | useCksum = 1; |
| 2134 | if( sCiInfo.zBranch==0 ) { |
| 2135 | sCiInfo.zBranch=db_get("main-branch", "trunk"); |
| 2136 | } |
| 2137 | }else if( content_is_private(vid) ){ |
| 2138 | g.markPrivate = 1; |
| 2139 | } |
| 2140 | |
| 2141 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -2130,11 +2130,11 @@ | |
| 2130 | /* Get the ID of the parent manifest artifact */ |
| 2131 | vid = db_lget_int("checkout", 0); |
| 2132 | if( vid==0 ){ |
| 2133 | useCksum = 1; |
| 2134 | if( sCiInfo.zBranch==0 ) { |
| 2135 | sCiInfo.zBranch=db_get("main-branch", "trunk"); |
| 2136 | } |
| 2137 | }else if( content_is_private(vid) ){ |
| 2138 | g.markPrivate = 1; |
| 2139 | } |
| 2140 | |
| 2141 |
+2
-2
| --- src/export.c | ||
| +++ src/export.c | ||
| @@ -170,11 +170,11 @@ | ||
| 170 | 170 | free(zName); |
| 171 | 171 | free(zEmail); |
| 172 | 172 | db_reset(&q); |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | -#define REFREPLACEMENT '_' | |
| 175 | +#define REFREPLACEMENT '_' | |
| 176 | 176 | |
| 177 | 177 | /* |
| 178 | 178 | ** Output a sanitized git named reference. |
| 179 | 179 | ** https://git-scm.com/docs/git-check-ref-format |
| 180 | 180 | ** This implementation assumes we are only printing |
| @@ -211,11 +211,11 @@ | ||
| 211 | 211 | case '?': |
| 212 | 212 | case '*': |
| 213 | 213 | case '[': |
| 214 | 214 | case '\\': |
| 215 | 215 | zEncoded[w]=REFREPLACEMENT; |
| 216 | - break; | |
| 216 | + break; | |
| 217 | 217 | } |
| 218 | 218 | } |
| 219 | 219 | /* Cannot begin with a . or / */ |
| 220 | 220 | if( zEncoded[0]=='.' || zEncoded[0] == '/' ) zEncoded[0]=REFREPLACEMENT; |
| 221 | 221 | if( i>0 ){ |
| 222 | 222 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -170,11 +170,11 @@ | |
| 170 | free(zName); |
| 171 | free(zEmail); |
| 172 | db_reset(&q); |
| 173 | } |
| 174 | |
| 175 | #define REFREPLACEMENT '_' |
| 176 | |
| 177 | /* |
| 178 | ** Output a sanitized git named reference. |
| 179 | ** https://git-scm.com/docs/git-check-ref-format |
| 180 | ** This implementation assumes we are only printing |
| @@ -211,11 +211,11 @@ | |
| 211 | case '?': |
| 212 | case '*': |
| 213 | case '[': |
| 214 | case '\\': |
| 215 | zEncoded[w]=REFREPLACEMENT; |
| 216 | break; |
| 217 | } |
| 218 | } |
| 219 | /* Cannot begin with a . or / */ |
| 220 | if( zEncoded[0]=='.' || zEncoded[0] == '/' ) zEncoded[0]=REFREPLACEMENT; |
| 221 | if( i>0 ){ |
| 222 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -170,11 +170,11 @@ | |
| 170 | free(zName); |
| 171 | free(zEmail); |
| 172 | db_reset(&q); |
| 173 | } |
| 174 | |
| 175 | #define REFREPLACEMENT '_' |
| 176 | |
| 177 | /* |
| 178 | ** Output a sanitized git named reference. |
| 179 | ** https://git-scm.com/docs/git-check-ref-format |
| 180 | ** This implementation assumes we are only printing |
| @@ -211,11 +211,11 @@ | |
| 211 | case '?': |
| 212 | case '*': |
| 213 | case '[': |
| 214 | case '\\': |
| 215 | zEncoded[w]=REFREPLACEMENT; |
| 216 | break; |
| 217 | } |
| 218 | } |
| 219 | /* Cannot begin with a . or / */ |
| 220 | if( zEncoded[0]=='.' || zEncoded[0] == '/' ) zEncoded[0]=REFREPLACEMENT; |
| 221 | if( i>0 ){ |
| 222 |
+4
-4
| --- src/import.c | ||
| +++ src/import.c | ||
| @@ -611,13 +611,13 @@ | ||
| 611 | 611 | fossil_panic("short read: got %d of %d bytes", got, gg.nData); |
| 612 | 612 | } |
| 613 | 613 | gg.aData[got] = '\0'; |
| 614 | 614 | if( gg.zComment==0 && |
| 615 | 615 | (gg.xFinish==finish_commit || gg.xFinish==finish_tag) ){ |
| 616 | - /* Strip trailing newline, it's appended to the comment. */ | |
| 617 | - if( gg.aData[got-1] == '\n' ) | |
| 618 | - gg.aData[got-1] = '\0'; | |
| 616 | + /* Strip trailing newline, it's appended to the comment. */ | |
| 617 | + if( gg.aData[got-1] == '\n' ) | |
| 618 | + gg.aData[got-1] = '\0'; | |
| 619 | 619 | gg.zComment = gg.aData; |
| 620 | 620 | gg.aData = 0; |
| 621 | 621 | gg.nData = 0; |
| 622 | 622 | } |
| 623 | 623 | } |
| @@ -643,11 +643,11 @@ | ||
| 643 | 643 | /* Lookup user by contact info. */ |
| 644 | 644 | fossil_free(gg.zUser); |
| 645 | 645 | gg.zUser = db_text(0, "SELECT login FROM user WHERE info=%Q", z); |
| 646 | 646 | if( gg.zUser==NULL ){ |
| 647 | 647 | /* If there is no user with this contact info, |
| 648 | - * then use the email address as the username. */ | |
| 648 | + * then use the email address as the username. */ | |
| 649 | 649 | if ( (z=strchr(z, '<'))==NULL ) goto malformed_line; |
| 650 | 650 | z++; |
| 651 | 651 | *(zTo-1) = '\0'; |
| 652 | 652 | gg.zUser = fossil_strdup(z); |
| 653 | 653 | } |
| 654 | 654 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -611,13 +611,13 @@ | |
| 611 | fossil_panic("short read: got %d of %d bytes", got, gg.nData); |
| 612 | } |
| 613 | gg.aData[got] = '\0'; |
| 614 | if( gg.zComment==0 && |
| 615 | (gg.xFinish==finish_commit || gg.xFinish==finish_tag) ){ |
| 616 | /* Strip trailing newline, it's appended to the comment. */ |
| 617 | if( gg.aData[got-1] == '\n' ) |
| 618 | gg.aData[got-1] = '\0'; |
| 619 | gg.zComment = gg.aData; |
| 620 | gg.aData = 0; |
| 621 | gg.nData = 0; |
| 622 | } |
| 623 | } |
| @@ -643,11 +643,11 @@ | |
| 643 | /* Lookup user by contact info. */ |
| 644 | fossil_free(gg.zUser); |
| 645 | gg.zUser = db_text(0, "SELECT login FROM user WHERE info=%Q", z); |
| 646 | if( gg.zUser==NULL ){ |
| 647 | /* If there is no user with this contact info, |
| 648 | * then use the email address as the username. */ |
| 649 | if ( (z=strchr(z, '<'))==NULL ) goto malformed_line; |
| 650 | z++; |
| 651 | *(zTo-1) = '\0'; |
| 652 | gg.zUser = fossil_strdup(z); |
| 653 | } |
| 654 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -611,13 +611,13 @@ | |
| 611 | fossil_panic("short read: got %d of %d bytes", got, gg.nData); |
| 612 | } |
| 613 | gg.aData[got] = '\0'; |
| 614 | if( gg.zComment==0 && |
| 615 | (gg.xFinish==finish_commit || gg.xFinish==finish_tag) ){ |
| 616 | /* Strip trailing newline, it's appended to the comment. */ |
| 617 | if( gg.aData[got-1] == '\n' ) |
| 618 | gg.aData[got-1] = '\0'; |
| 619 | gg.zComment = gg.aData; |
| 620 | gg.aData = 0; |
| 621 | gg.nData = 0; |
| 622 | } |
| 623 | } |
| @@ -643,11 +643,11 @@ | |
| 643 | /* Lookup user by contact info. */ |
| 644 | fossil_free(gg.zUser); |
| 645 | gg.zUser = db_text(0, "SELECT login FROM user WHERE info=%Q", z); |
| 646 | if( gg.zUser==NULL ){ |
| 647 | /* If there is no user with this contact info, |
| 648 | * then use the email address as the username. */ |
| 649 | if ( (z=strchr(z, '<'))==NULL ) goto malformed_line; |
| 650 | z++; |
| 651 | *(zTo-1) = '\0'; |
| 652 | gg.zUser = fossil_strdup(z); |
| 653 | } |
| 654 |
+5
-5
| --- src/winhttp.c | ||
| +++ src/winhttp.c | ||
| @@ -203,26 +203,26 @@ | ||
| 203 | 203 | /* |
| 204 | 204 | ** Accepts connections on DualSocket. |
| 205 | 205 | */ |
| 206 | 206 | static void DualSocket_accept(DualSocket* pListen, DualSocket* pClient, |
| 207 | 207 | DualAddr* pClientAddr){ |
| 208 | - fd_set rs; | |
| 208 | + fd_set rs; | |
| 209 | 209 | int rs_count = 0; |
| 210 | 210 | assert( pListen!=NULL && pClient!=NULL && pClientAddr!= NULL ); |
| 211 | 211 | DualSocket_init(pClient); |
| 212 | 212 | DualAddr_init(pClientAddr); |
| 213 | 213 | FD_ZERO(&rs); |
| 214 | - if( pListen->s4!=INVALID_SOCKET ){ | |
| 214 | + if( pListen->s4!=INVALID_SOCKET ){ | |
| 215 | 215 | FD_SET(pListen->s4, &rs); |
| 216 | 216 | ++rs_count; |
| 217 | 217 | } |
| 218 | - if( pListen->s6!=INVALID_SOCKET ){ | |
| 218 | + if( pListen->s6!=INVALID_SOCKET ){ | |
| 219 | 219 | FD_SET(pListen->s6, &rs); |
| 220 | 220 | ++rs_count; |
| 221 | 221 | } |
| 222 | - if( select(rs_count, &rs, 0, 0, 0 /*blocking*/)==SOCKET_ERROR ){ | |
| 223 | - return; | |
| 222 | + if( select(rs_count, &rs, 0, 0, 0 /*blocking*/)==SOCKET_ERROR ){ | |
| 223 | + return; | |
| 224 | 224 | } |
| 225 | 225 | if( FD_ISSET(pListen->s4, &rs) ){ |
| 226 | 226 | pClient->s4 = accept(pListen->s4, (struct sockaddr*)&pClientAddr->a4.addr, |
| 227 | 227 | &pClientAddr->a4.len); |
| 228 | 228 | } |
| 229 | 229 |
| --- src/winhttp.c | |
| +++ src/winhttp.c | |
| @@ -203,26 +203,26 @@ | |
| 203 | /* |
| 204 | ** Accepts connections on DualSocket. |
| 205 | */ |
| 206 | static void DualSocket_accept(DualSocket* pListen, DualSocket* pClient, |
| 207 | DualAddr* pClientAddr){ |
| 208 | fd_set rs; |
| 209 | int rs_count = 0; |
| 210 | assert( pListen!=NULL && pClient!=NULL && pClientAddr!= NULL ); |
| 211 | DualSocket_init(pClient); |
| 212 | DualAddr_init(pClientAddr); |
| 213 | FD_ZERO(&rs); |
| 214 | if( pListen->s4!=INVALID_SOCKET ){ |
| 215 | FD_SET(pListen->s4, &rs); |
| 216 | ++rs_count; |
| 217 | } |
| 218 | if( pListen->s6!=INVALID_SOCKET ){ |
| 219 | FD_SET(pListen->s6, &rs); |
| 220 | ++rs_count; |
| 221 | } |
| 222 | if( select(rs_count, &rs, 0, 0, 0 /*blocking*/)==SOCKET_ERROR ){ |
| 223 | return; |
| 224 | } |
| 225 | if( FD_ISSET(pListen->s4, &rs) ){ |
| 226 | pClient->s4 = accept(pListen->s4, (struct sockaddr*)&pClientAddr->a4.addr, |
| 227 | &pClientAddr->a4.len); |
| 228 | } |
| 229 |
| --- src/winhttp.c | |
| +++ src/winhttp.c | |
| @@ -203,26 +203,26 @@ | |
| 203 | /* |
| 204 | ** Accepts connections on DualSocket. |
| 205 | */ |
| 206 | static void DualSocket_accept(DualSocket* pListen, DualSocket* pClient, |
| 207 | DualAddr* pClientAddr){ |
| 208 | fd_set rs; |
| 209 | int rs_count = 0; |
| 210 | assert( pListen!=NULL && pClient!=NULL && pClientAddr!= NULL ); |
| 211 | DualSocket_init(pClient); |
| 212 | DualAddr_init(pClientAddr); |
| 213 | FD_ZERO(&rs); |
| 214 | if( pListen->s4!=INVALID_SOCKET ){ |
| 215 | FD_SET(pListen->s4, &rs); |
| 216 | ++rs_count; |
| 217 | } |
| 218 | if( pListen->s6!=INVALID_SOCKET ){ |
| 219 | FD_SET(pListen->s6, &rs); |
| 220 | ++rs_count; |
| 221 | } |
| 222 | if( select(rs_count, &rs, 0, 0, 0 /*blocking*/)==SOCKET_ERROR ){ |
| 223 | return; |
| 224 | } |
| 225 | if( FD_ISSET(pListen->s4, &rs) ){ |
| 226 | pClient->s4 = accept(pListen->s4, (struct sockaddr*)&pClientAddr->a4.addr, |
| 227 | &pClientAddr->a4.len); |
| 228 | } |
| 229 |