Fossil SCM

Add -x as short option for --verily, for compatibility with GIT

jan.nijtmans 2015-04-29 07:04 trunk
Commit 6262e632ee7cffdd1244b36194d40d6e4c97de5d
1 file changed +2 -2
+2 -2
--- src/checkin.c
+++ src/checkin.c
@@ -657,11 +657,11 @@
657657
** argument. Matching files, if any, are removed
658658
** prior to checking for any empty directories;
659659
** therefore, directories that contain only files
660660
** that were removed will be removed as well.
661661
** -f|--force Remove files without prompting.
662
-** --verily Remove everything that is not a managed file or
662
+** -x|--verily Remove everything that is not a managed file or
663663
** the repository itself. Imples -f --emptydirs
664664
** --dotfiles --ignore '' --keep ''.
665665
** --clean <CSG> Never prompt for files matching this
666666
** comma separated list of glob patterns.
667667
** --ignore <CSG> Ignore files matching patterns from the
@@ -699,11 +699,11 @@
699699
zIgnoreFlag = find_option("ignore",0,1);
700700
verboseFlag = find_option("verbose","v",0)!=0;
701701
zKeepFlag = find_option("keep",0,1);
702702
zCleanFlag = find_option("clean",0,1);
703703
db_must_be_within_tree();
704
- if( find_option("verily",0,0)!=0 ){
704
+ if( find_option("verily","x",0)!=0 ){
705705
verilyFlag = allFileFlag = allDirFlag = 1;
706706
emptyDirsFlag = 1;
707707
scanFlags |= SCAN_ALL;
708708
zKeepFlag = 0;
709709
zIgnoreFlag = 0;
710710
--- src/checkin.c
+++ src/checkin.c
@@ -657,11 +657,11 @@
657 ** argument. Matching files, if any, are removed
658 ** prior to checking for any empty directories;
659 ** therefore, directories that contain only files
660 ** that were removed will be removed as well.
661 ** -f|--force Remove files without prompting.
662 ** --verily Remove everything that is not a managed file or
663 ** the repository itself. Imples -f --emptydirs
664 ** --dotfiles --ignore '' --keep ''.
665 ** --clean <CSG> Never prompt for files matching this
666 ** comma separated list of glob patterns.
667 ** --ignore <CSG> Ignore files matching patterns from the
@@ -699,11 +699,11 @@
699 zIgnoreFlag = find_option("ignore",0,1);
700 verboseFlag = find_option("verbose","v",0)!=0;
701 zKeepFlag = find_option("keep",0,1);
702 zCleanFlag = find_option("clean",0,1);
703 db_must_be_within_tree();
704 if( find_option("verily",0,0)!=0 ){
705 verilyFlag = allFileFlag = allDirFlag = 1;
706 emptyDirsFlag = 1;
707 scanFlags |= SCAN_ALL;
708 zKeepFlag = 0;
709 zIgnoreFlag = 0;
710
--- src/checkin.c
+++ src/checkin.c
@@ -657,11 +657,11 @@
657 ** argument. Matching files, if any, are removed
658 ** prior to checking for any empty directories;
659 ** therefore, directories that contain only files
660 ** that were removed will be removed as well.
661 ** -f|--force Remove files without prompting.
662 ** -x|--verily Remove everything that is not a managed file or
663 ** the repository itself. Imples -f --emptydirs
664 ** --dotfiles --ignore '' --keep ''.
665 ** --clean <CSG> Never prompt for files matching this
666 ** comma separated list of glob patterns.
667 ** --ignore <CSG> Ignore files matching patterns from the
@@ -699,11 +699,11 @@
699 zIgnoreFlag = find_option("ignore",0,1);
700 verboseFlag = find_option("verbose","v",0)!=0;
701 zKeepFlag = find_option("keep",0,1);
702 zCleanFlag = find_option("clean",0,1);
703 db_must_be_within_tree();
704 if( find_option("verily","x",0)!=0 ){
705 verilyFlag = allFileFlag = allDirFlag = 1;
706 emptyDirsFlag = 1;
707 scanFlags |= SCAN_ALL;
708 zKeepFlag = 0;
709 zIgnoreFlag = 0;
710

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button