Fossil SCM
Make "fossil stash" and "fossil stash save" work the same. Ticket [58290cd2975f5f2]
Commit
18575b14ac0974b6f50d6e828d9797fb1cf8b844
Parent
cae94fe2c7b61b7…
1 file changed
+1
-1
+1
-1
| --- src/stash.c | ||
| +++ src/stash.c | ||
| @@ -379,11 +379,11 @@ | ||
| 379 | 379 | } |
| 380 | 380 | nCmd = strlen(zCmd); |
| 381 | 381 | if( memcmp(zCmd, "save", nCmd)==0 ){ |
| 382 | 382 | stashid = stash_create(); |
| 383 | 383 | undo_disable(); |
| 384 | - if( g.argc>=3 ){ | |
| 384 | + if( g.argc>=2 ){ | |
| 385 | 385 | int nFile = db_int(0, "SELECT count(*) FROM stashfile WHERE stashid=%d", |
| 386 | 386 | stashid); |
| 387 | 387 | char **newArgv = fossil_malloc( sizeof(char*)*(nFile+2) ); |
| 388 | 388 | int i = 2; |
| 389 | 389 | Stmt q; |
| 390 | 390 |
| --- src/stash.c | |
| +++ src/stash.c | |
| @@ -379,11 +379,11 @@ | |
| 379 | } |
| 380 | nCmd = strlen(zCmd); |
| 381 | if( memcmp(zCmd, "save", nCmd)==0 ){ |
| 382 | stashid = stash_create(); |
| 383 | undo_disable(); |
| 384 | if( g.argc>=3 ){ |
| 385 | int nFile = db_int(0, "SELECT count(*) FROM stashfile WHERE stashid=%d", |
| 386 | stashid); |
| 387 | char **newArgv = fossil_malloc( sizeof(char*)*(nFile+2) ); |
| 388 | int i = 2; |
| 389 | Stmt q; |
| 390 |
| --- src/stash.c | |
| +++ src/stash.c | |
| @@ -379,11 +379,11 @@ | |
| 379 | } |
| 380 | nCmd = strlen(zCmd); |
| 381 | if( memcmp(zCmd, "save", nCmd)==0 ){ |
| 382 | stashid = stash_create(); |
| 383 | undo_disable(); |
| 384 | if( g.argc>=2 ){ |
| 385 | int nFile = db_int(0, "SELECT count(*) FROM stashfile WHERE stashid=%d", |
| 386 | stashid); |
| 387 | char **newArgv = fossil_malloc( sizeof(char*)*(nFile+2) ); |
| 388 | int i = 2; |
| 389 | Stmt q; |
| 390 |