343
344
345
346
347
348
349
350
351
352
353
354
355
356
|
** fossil stash goto ?STASHID?
**
** Update to the baseline checkout for STASHID then apply the
** changes of STASHID. Keep STASHID so that it can be reused
** This command is undoable.
**
** fossil stash drop ?STASHID? ?--all?
**
** Forget everything about STASHID. Forget the whole stash if the
** --all flag is used. Individual drops are undoable but --all is not.
**
** fossil stash snapshot ?-m COMMENT? ?FILES...?
**
** Save the current changes in the working tress as a new stash
|
>
|
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
|
** fossil stash goto ?STASHID?
**
** Update to the baseline checkout for STASHID then apply the
** changes of STASHID. Keep STASHID so that it can be reused
** This command is undoable.
**
** fossil stash drop ?STASHID? ?--all?
** fossil stash rm ?STASHID? ?--all?
**
** Forget everything about STASHID. Forget the whole stash if the
** --all flag is used. Individual drops are undoable but --all is not.
**
** fossil stash snapshot ?-m COMMENT? ?FILES...?
**
** Save the current changes in the working tress as a new stash
|
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
|
fossil_print(" ");
comment_print(zCom, 7, 79);
}
}
db_finalize(&q);
if( n==0 ) fossil_print("empty stash\n");
}else
if(( memcmp(zCmd, "drop", nCmd)==0 )||( memcmp(zCmd, "rm", nCmd)==0 )){
int allFlag = find_option("all", 0, 0)!=0;
if( g.argc>4 ) usage("stash apply STASHID");
if( allFlag ){
db_multi_exec("DELETE FROM stash; DELETE FROM stashfile;");
}else{
stashid = stash_get_id(g.argc==4 ? g.argv[3] : 0);
undo_begin();
|
|
|
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
|
fossil_print(" ");
comment_print(zCom, 7, 79);
}
}
db_finalize(&q);
if( n==0 ) fossil_print("empty stash\n");
}else
if( memcmp(zCmd, "drop", nCmd)==0 || memcmp(zCmd, "rm", nCmd)==0 ){
int allFlag = find_option("all", 0, 0)!=0;
if( g.argc>4 ) usage("stash apply STASHID");
if( allFlag ){
db_multi_exec("DELETE FROM stash; DELETE FROM stashfile;");
}else{
stashid = stash_get_id(g.argc==4 ? g.argv[3] : 0);
undo_begin();
|