Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | [/help/stash|stash gdiff] now honors the "g" in gdiff. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
cd5a7e12907fca09f41c89f9c633a186 |
| User & Date: | stephan 2014-05-09 09:34:26.882 |
Context
|
2014-05-14
| ||
| 16:05 | minor doc correction. ... (check-in: ec44f61a83 user: stephan tags: trunk) | |
|
2014-05-09
| ||
| 09:34 | [/help/stash|stash gdiff] now honors the "g" in gdiff. ... (check-in: cd5a7e1290 user: stephan tags: trunk) | |
| 08:44 | A "fossil checkout" when the current check-out is the empty checkout (vid=0) should delete the vfile table. ... (check-in: 0c9b1fb412 user: jan.nijtmans tags: trunk) | |
Changes
Changes to src/stash.c.
| ︙ | ︙ | |||
474 475 476 477 478 479 480 |
** fossil stash [g]diff ?STASHID? ?DIFF-OPTIONS?
*/
void stash_cmd(void){
const char *zDb;
const char *zCmd;
int nCmd;
int stashid = 0;
| < | 474 475 476 477 478 479 480 481 482 483 484 485 486 487 |
** fossil stash [g]diff ?STASHID? ?DIFF-OPTIONS?
*/
void stash_cmd(void){
const char *zDb;
const char *zCmd;
int nCmd;
int stashid = 0;
undo_capture_command_line();
db_must_be_within_tree();
db_open_config(0);
db_begin_transaction();
zDb = db_name("localdb");
db_multi_exec(zStashInit, zDb, zDb);
if( g.argc<=2 ){
|
| ︙ | ︙ | |||
622 623 624 625 626 627 628 |
undo_begin();
stash_apply(stashid, 0);
undo_finish();
}else
if( memcmp(zCmd, "goto", nCmd)==0 ){
int nConflict;
int vid;
| < | 621 622 623 624 625 626 627 628 629 630 631 632 633 634 |
undo_begin();
stash_apply(stashid, 0);
undo_finish();
}else
if( memcmp(zCmd, "goto", nCmd)==0 ){
int nConflict;
int vid;
if( g.argc>4 ) usage("apply STASHID");
stashid = stash_get_id(g.argc==4 ? g.argv[3] : 0);
undo_begin();
vid = db_int(0, "SELECT vid FROM stash WHERE stashid=%d", stashid);
nConflict = update_to(vid);
stash_apply(stashid, nConflict);
db_multi_exec("UPDATE vfile SET mtime=0 WHERE pathname IN "
|
| ︙ | ︙ | |||
649 650 651 652 653 654 655 |
if( find_option("tk",0,0)!=0 ){
db_close(0);
diff_tk((zCmd[0]=='s' ? "stash show" : "stash diff"), 3);
return;
}
if( find_option("internal","i",0)==0 ){
| | | 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 |
if( find_option("tk",0,0)!=0 ){
db_close(0);
diff_tk((zCmd[0]=='s' ? "stash show" : "stash diff"), 3);
return;
}
if( find_option("internal","i",0)==0 ){
zDiffCmd = diff_command_external(memcmp(zCmd, "gdiff", nCmd)==0);
}
diffFlags = diff_options();
if( find_option("verbose","v",0)!=0 ) diffFlags |= DIFF_VERBOSE;
if( g.argc>4 ) usage(mprintf("%s STASHID", zCmd));
if( zDiffCmd ){
zBinGlob = diff_get_binary_glob();
fIncludeBinary = diff_include_binary_files();
|
| ︙ | ︙ |