Fossil

Check-in [9abf0543]
Login

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

Overview
Comment:"stash ls", in addition to "stash list"
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | bch
Files: files | file ages | folders
SHA1:9abf05437bf5ec2a8067485131699dd3eb42e70a
User & Date: bharder 2011-02-15 05:19:18
Context
2011-02-16
22:55
merge trunk Closed-Leaf check-in: 0eaf7528 user: bharder tags: bch
2011-02-15
05:19
"stash ls", in addition to "stash list" check-in: 9abf0543 user: bharder tags: bch
05:18
Create new branch named "bch" check-in: 8b5556c9 user: bharder tags: bch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/stash.c.

315
316
317
318
319
320
321

322
323
324
325
326
327
328
...
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
**     Save the current changes in the working tree as a new stash.
**     Then revert the changes back to the last check-in.  If FILES
**     are listed, then only stash and revert the named files.  The
**     "save" verb can be omitted if and only if there are no other
**     arguments.
**
**  fossil stash list

**
**     List all changes sets currently stashed.
**
**  fossil stash pop
**
**     Apply the most recently create stash to the current working
**     check-out.  Then delete that stash.  This is equivalent to
................................................................................
    }
    g.argv[1] = "revert";
    revert_cmd();
  }else
  if( memcmp(zCmd, "snapshot", nCmd)==0 ){
    stash_create();
  }else
  if( memcmp(zCmd, "list", nCmd)==0 ){
    Stmt q;
    int n = 0;
    verify_all_options();
    db_prepare(&q,
       "SELECT stashid, (SELECT uuid FROM blob WHERE rid=vid),"
       "       comment, datetime(ctime) FROM stash"
       " ORDER BY ctime DESC"







>







 







|







315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
...
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
**     Save the current changes in the working tree as a new stash.
**     Then revert the changes back to the last check-in.  If FILES
**     are listed, then only stash and revert the named files.  The
**     "save" verb can be omitted if and only if there are no other
**     arguments.
**
**  fossil stash list
**  fossil stash ls
**
**     List all changes sets currently stashed.
**
**  fossil stash pop
**
**     Apply the most recently create stash to the current working
**     check-out.  Then delete that stash.  This is equivalent to
................................................................................
    }
    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,
       "SELECT stashid, (SELECT uuid FROM blob WHERE rid=vid),"
       "       comment, datetime(ctime) FROM stash"
       " ORDER BY ctime DESC"