hi there,

a simple patch that tries to do the following:

-remove end of line whitespace
-put all See also entries in alphabetical order
-remove SUMMARY that i dont see being used anywhere else

i felt that because 'mv' is in add.c, perhaps it also
has a place on the See also lines of the other add.c commands...

-f


--- src/add.c
+++ src/add.c
@@ -49,11 +49,11 @@
      ".fslckout",
      ".fslckout-journal",
      ".fslckout-wal",
      ".fslckout-shm",
 
-     /* The use of ".fos" as the name of the checkout database is 
+     /* The use of ".fos" as the name of the checkout database is
      ** deprecated.  Use ".fslckout" instead.  At some point, the following
      ** entries should be removed.  2012-02-04 */
      ".fos",
      ".fos-journal",
      ".fos-wal",
@@ -148,11 +148,11 @@
   int i;                    /* Loop counter */
   const char *zReserved;    /* Name of a reserved file */
   Blob repoName;            /* Treename of the repository */
   Stmt loop;                /* SQL to loop over all files to add */
   int (*xCmp)(const char*,const char*);
- 
+
   if( !file_tree_name(g.zRepositoryName, &repoName, 0) ){
     blob_zero(&repoName);
     zRepo = "";
   }else{
     zRepo = blob_str(&repoName);
@@ -198,15 +198,15 @@
 ** does not appear on the command line then the "ignore-glob" setting is
 ** used.
 **
 ** Options:
 **
-**    --dotfiles       include files beginning with a dot (".")   
-**    --ignore <CSG>   ignore files matching patterns from the 
+**    --dotfiles       include files beginning with a dot (".")
+**    --ignore <CSG>   ignore files matching patterns from the
 **                     comma separated list of glob patterns.
-** 
-** See also: addremove, rm
+**
+** See also: addremove, mv, rm
 */
 void add_cmd(void){
   int i;                     /* Loop counter */
   int vid;                   /* Currently checked out version */
   int nRoot;                 /* Full path characters in g.zLocalRoot */
@@ -234,11 +234,11 @@
      "  ON vfile(pathname COLLATE nocase)"
   );
 #endif
   pIgnore = glob_create(zIgnoreFlag);
   nRoot = strlen(g.zLocalRoot);
-  
+
   /* Load the names of all files that are to be added into sfile temp table */
   for(i=2; i<g.argc; i++){
     char *zName;
     int isDir;
     Blob fullName;
@@ -278,11 +278,11 @@
 **
 ** This command does NOT remove the files from disk.  It just marks the
 ** files as no longer being part of the project.  In other words, future
 ** changes to the named files will not be versioned.
 **
-** See also: addremove, add
+** See also: add, addremove, mv
 */
 void delete_cmd(void){
   int i;
   int vid;
   Stmt loop;
@@ -308,11 +308,11 @@
        "    AND NOT deleted",
        zTreeName, zTreeName, zTreeName
     );
     blob_reset(&treeName);
   }
-  
+
   db_prepare(&loop, "SELECT x FROM sfile");
   while( db_step(&loop)==SQLITE_ROW ){
     fossil_print("DELETED %s\n", db_column_text(&loop, 0));
   }
   db_finalize(&loop);
@@ -390,12 +390,11 @@
 **
 **  *  All files in the repository but missing from the checkout (that is,
 **     all files that show as MISSING with the "status" command) are
 **     removed as if by the "rm" command.
 **
-** The command does not "commit".  You must run the "commit" separately
-** as a separate step.
+** This command does not "commit" automatically.
 **
 ** Files and directories whose names begin with "." are ignored unless
 ** the --dotfiles option is used.
 **
 ** The --ignore option overrides the "ignore-glob" setting.  See
@@ -402,18 +401,18 @@
 ** documentation on the "settings" command for further information.
 **
 ** The --test option shows what would happen without actually doing anything.
 **
 ** This command can be used to track third party software.
-** 
-** Options: 
-**   --dotfiles       include files beginning with a dot (".")   
-**   --ignore <CSG>   ignore files matching patterns from the 
+**
+** Options:
+**   --dotfiles       include files beginning with a dot (".")
+**   --ignore <CSG>   ignore files matching patterns from the
 **                    comma separated list of glob patterns.
 **   --test           If given, show what would be done without doing so.
 **
-** See also: add, rm
+** See also: add, mv, rm
 */
 void addremove_cmd(void){
   Blob path;
   const char *zIgnoreFlag = find_option("ignore",0,1);
   int allFlag = find_option("dotfiles",0,0)!=0;
@@ -436,11 +435,11 @@
   if( vid==0 ){
     fossil_panic("no checkout to add to");
   }
   db_begin_transaction();
 
-  /* step 1:  
+  /* step 1:
   ** Populate the temp table "sfile" with the names of all unmanged
   ** files currently in the check-out, except for files that match the
   ** --ignore or ignore-glob patterns and dot-files.  Then add all of
   ** the files in the sfile temp table to the set of managed files.
   */
@@ -507,13 +506,11 @@
 **
 ** This command does NOT rename or move the files on disk.  This command merely
 ** records the fact that filenames have changed so that appropriate notations
 ** can be made at the next commit/checkin.
 **
-**
-** SUMMARY: fossil mv|rename OLDNAME NEWNAME
-**      or: fossil mv|rename OLDNAME... DIR
+** See also: add, addremove, rm
 */
 void mv_cmd(void){
   int i;
   int vid;
   char *zDest;

-- 
every silver lining has a cloud.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to