Fossil

Check-in [4e0274bb]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Enable a “stash make” subcommand as an alias for “stash snapshot”
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | stash_mk
Files: files | file ages | folders
SHA1:4e0274bbc336de42636c34a9a25c11d4f0cdde8f
User & Date: BM 2011-02-17 08:15:04
Context
2011-02-17
08:15
Enable a “stash make” subcommand as an alias for “stash snapshot” Leaf check-in: 4e0274bb user: BM tags: stash_mk
00:05
Merge in Brad Harder's "stash ls" command. check-in: ae73c07b user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to src/stash.c.

345
346
347
348
349
350
351

352
353
354
355
356
357
358
...
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
**
**  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
**     but, unlike "save", do not revert those changes.
**
**  fossil stash diff ?STASHID?
**  fossil stash gdiff ?STASHID?
**
................................................................................
      g.argv = newArgv;
      g.argc = nFile+2;
      if( nFile==0 ) return;
    }
    g.argv[1] = "revert";
    revert_cmd();
  }else
  if( memcmp(zCmd, "snapshot", nCmd)==0 ){
    stash_create();
  }else
  if( memcmp(zCmd, "list", nCmd)==0 || memcmp(zCmd, "ls", nCmd)==0 ){
    Stmt q;
    int n = 0;
    verify_all_options();
    db_prepare(&q,







>







 







|







345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
...
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
**
**  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...?
**  fossil stash make ?-m COMMENT? ?FILES...?
**
**     Save the current changes in the working tress as a new stash
**     but, unlike "save", do not revert those changes.
**
**  fossil stash diff ?STASHID?
**  fossil stash gdiff ?STASHID?
**
................................................................................
      g.argv = newArgv;
      g.argc = nFile+2;
      if( nFile==0 ) return;
    }
    g.argv[1] = "revert";
    revert_cmd();
  }else
  if( memcmp(zCmd, "snapshot", nCmd)==0 || memcmp(zCmd, "make", nCmd)==0 ){
    stash_create();
  }else
  if( memcmp(zCmd, "list", nCmd)==0 || memcmp(zCmd, "ls", nCmd)==0 ){
    Stmt q;
    int n = 0;
    verify_all_options();
    db_prepare(&q,