Fossil SCM

Make "fossil stash" and "fossil stash save" work the same. Ticket [58290cd2975f5f2]

drh 2011-03-16 02:28 trunk
Commit 18575b14ac0974b6f50d6e828d9797fb1cf8b844
1 file changed +1 -1
+1 -1
--- src/stash.c
+++ src/stash.c
@@ -379,11 +379,11 @@
379379
}
380380
nCmd = strlen(zCmd);
381381
if( memcmp(zCmd, "save", nCmd)==0 ){
382382
stashid = stash_create();
383383
undo_disable();
384
- if( g.argc>=3 ){
384
+ if( g.argc>=2 ){
385385
int nFile = db_int(0, "SELECT count(*) FROM stashfile WHERE stashid=%d",
386386
stashid);
387387
char **newArgv = fossil_malloc( sizeof(char*)*(nFile+2) );
388388
int i = 2;
389389
Stmt q;
390390
--- 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

Keyboard Shortcuts

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