[BACK]Return to annotate.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/annotate.c between version 1.13 and 1.14

version 1.13, 2005/05/20 20:00:53 version 1.14, 2005/05/24 04:12:25
Line 41 
Line 41 
   
   
 static int cvs_annotate_file      (CVSFILE *, void *);  static int cvs_annotate_file      (CVSFILE *, void *);
 static int cvs_annotate_options   (char *, int, char **, int *);  static int cvs_annotate_options   (struct cvs_cmd *, int, char **, int *);
 static int cvs_annotate_sendflags (struct cvsroot *);  static int cvs_annotate_sendflags (struct cvsroot *);
   
 struct cvs_cmd_info cvs_annotate = {  
   struct cvs_cmd cvs_cmd_annotate = {
           CVS_OP_ANNOTATE, CVS_REQ_ANNOTATE, "annotate",
           { "ann", "blame"  },
           "Show last revision where each line was modified",
           "[-flR] [-D date | -r rev] ...",
           "D:flRr:",
           NULL,
           CF_SORT | CF_RECURSE | CF_IGNORE | CF_NOSYMS,
         cvs_annotate_options,          cvs_annotate_options,
         cvs_annotate_sendflags,          cvs_annotate_sendflags,
         cvs_annotate_file,          cvs_annotate_file,
         NULL, NULL,          cvs_annotate_file,
         CF_SORT | CF_RECURSE | CF_IGNORE | CF_NOSYMS,          NULL,
         CVS_REQ_ANNOTATE,          NULL,
         CVS_CMD_ALLOWSPEC | CVS_CMD_SENDDIR | CVS_CMD_SENDARGS2          CVS_CMD_ALLOWSPEC | CVS_CMD_SENDDIR | CVS_CMD_SENDARGS2
 };  };
   
Line 58 
Line 66 
 static int usehead;  static int usehead;
   
 static int  static int
 cvs_annotate_options(char *opt, int argc, char **argv, int *arg)  cvs_annotate_options(struct cvs_cmd *cmd, int argc, char **argv, int *arg)
 {  {
         int ch;          int ch;
   
Line 66 
Line 74 
         date = NULL;          date = NULL;
         rev = NULL;          rev = NULL;
   
         while ((ch = getopt(argc, argv, opt)) != -1) {          while ((ch = getopt(argc, argv, cmd->cmd_opts)) != -1) {
                 switch (ch) {                  switch (ch) {
                 case 'D':                  case 'D':
                         date = optarg;                          date = optarg;
Line 75 
Line 83 
                         usehead = 1;                          usehead = 1;
                         break;                          break;
                 case 'l':                  case 'l':
                         cvs_annotate.file_flags &= ~CF_RECURSE;                          cmd->file_flags &= ~CF_RECURSE;
                         break;                          break;
                 case 'R':                  case 'R':
                         cvs_annotate.file_flags |= CF_RECURSE;                          cmd->file_flags |= CF_RECURSE;
                         break;                          break;
                 case 'r':                  case 'r':
                         rev = optarg;                          rev = optarg;

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14