Fossil

Check-in [2ed14f79d8]
Login

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

Overview
Comment:Recognize the '--soft' and '--hard' options as well for the mv/rm commands.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | mvAndRmFiles
Files: files | file ages | folders
SHA1: 2ed14f79d8c0a0fbaac7c5391eb95a04be0e8a0c
User & Date: mistachkin 2015-03-04 02:00:22.928
Context
2015-03-04
02:03
Revise the --soft/--hard option processing a bit. ... (check-in: 2d1f5abf71 user: mistachkin tags: mvAndRmFiles)
02:00
Recognize the '--soft' and '--hard' options as well for the mv/rm commands. ... (check-in: 2ed14f79d8 user: mistachkin tags: mvAndRmFiles)
01:27
Add '--metadata-only' option to the 'mv' and 'rm' commands. ... (check-in: 65d5f2756a user: mistachkin tags: mvAndRmFiles)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/add.c.
400
401
402
403
404
405
406






407
408
409
410
411
412
413
/*
** Capture the command-line --metadata-only option.
*/
static const char *zMetadataOnly = 0;
void capture_metadata_only_option(void){
  if( zMetadataOnly==0 ){
    zMetadataOnly = find_option("metadata-only",0,1);






  }
}

/*
** COMMAND: rm
** COMMAND: delete*
**







>
>
>
>
>
>







400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
/*
** Capture the command-line --metadata-only option.
*/
static const char *zMetadataOnly = 0;
void capture_metadata_only_option(void){
  if( zMetadataOnly==0 ){
    zMetadataOnly = find_option("metadata-only",0,1);
  }
  if( find_option("soft",0,0) && zMetadataOnly==0 ){
    zMetadataOnly = "1";
  }
  if( find_option("hard",0,0) && zMetadataOnly==0 ){
    zMetadataOnly = "0";
  }
}

/*
** COMMAND: rm
** COMMAND: delete*
**