Greg Ward avatar Greg Ward committed ef4179b

Order VC systems by popularity: CVS should be near the end, not first!

Comments (0)

Files changed (2)

     }
 
     vccontext_t *contexts[] = {
-        get_cvs_context(&options),
+        /* ordered by popularity, so the common case is fast */
         get_git_context(&options),
         get_hg_context(&options),
         get_svn_context(&options),
+        get_cvs_context(&options),
         get_fossil_context(&options),
     };
     int num_contexts = sizeof(contexts) / sizeof(vccontext_t*);
 tries hard to avoid spawning external commands, but sometimes it can't
 be helped.
 
-.SH CVS SUPPORT
-
-.B vcprompt
-considers the current directory a CVS working dir if file
-.I CVS/Entries
-exists.
-
-Format specifier
-.B %b
-(branch) is supported by reading
-.I CVS/Tag;
-if that file does not exist,
-.B vcprompt
-displays the branch as "trunk".
-
-.B vcprompt
-looks only in the current dir, not in any subdirectories, so it will
-not notice mixed-branch working dirs.
-
-Format specifier
-.B %r
-is not supported because CVS has no global revision ID.
-
-Format specifiers
-.B %m
-and
-.B %u
-are not supported because CVS has no easy way to get that
-information.
-
 .SH GIT SUPPORT
 
 .B vcprompt
 .B %u
 are not implemented.
 
+.SH CVS SUPPORT
+
+.B vcprompt
+considers the current directory a CVS working dir if file
+.I CVS/Entries
+exists.
+
+Format specifier
+.B %b
+(branch) is supported by reading
+.I CVS/Tag;
+if that file does not exist,
+.B vcprompt
+displays the branch as "trunk".
+
+.B vcprompt
+looks only in the current dir, not in any subdirectories, so it will
+not notice mixed-branch working dirs.
+
+Format specifier
+.B %r
+is not supported because CVS has no global revision ID.
+
+Format specifiers
+.B %m
+and
+.B %u
+are not supported because CVS has no easy way to get that
+information.
+
 .SH FOSSIL SUPPORT
 
 .B vcprompt
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.