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

Diff for /src/usr.bin/cvs/release.c between version 1.6 and 1.7

version 1.6, 2005/05/20 20:00:53 version 1.7, 2005/05/24 04:12:25
Line 42 
Line 42 
   
 extern char *__progname;  extern char *__progname;
   
 static int cvs_release_options(char *, int, char **, int *);  static int cvs_release_init     (struct cvs_cmd *, int, char **, int *);
 static int cvs_release_sendflags(struct cvsroot *);  static int cvs_release_pre_exec (struct cvsroot *);
 static int cvs_release_yesno(void);  static int cvs_release_yesno    (void);
 static int cvs_release_dir(CVSFILE *, void *);  static int cvs_release_dir      (CVSFILE *, void *);
   
 struct cvs_cmd_info cvs_release = {  struct cvs_cmd cvs_cmd_release = {
         cvs_release_options,          CVS_OP_RELEASE, CVS_REQ_RELEASE, "release",
         cvs_release_sendflags,          { },
           "Release",
           "[-d]",
           "d",
           NULL,
           0,
           cvs_release_init,
           cvs_release_pre_exec,
         cvs_release_dir,          cvs_release_dir,
         NULL, NULL,          cvs_release_dir,
         CF_IGNORE | CF_KNOWN | CF_NOFILES | CF_RECURSE,          NULL,
         CVS_REQ_RELEASE,          NULL,
         CVS_CMD_SENDDIR | CVS_CMD_SENDARGS2 | CVS_CMD_ALLOWSPEC          CVS_CMD_SENDDIR | CVS_CMD_SENDARGS2 | CVS_CMD_ALLOWSPEC
 };  };
   
 static int      dflag;  /* -d option */  static int      dflag;  /* -d option */
   
 static int  static int
 cvs_release_options(char *opt, int argc, char **argv, int *arg)  cvs_release_init(struct cvs_cmd *cmd, int argc, char **argv, int *arg)
 {  {
         int ch;          int ch;
   
         while ((ch = getopt(argc, argv, opt)) != -1) {          while ((ch = getopt(argc, argv, cmd->cmd_opts)) != -1) {
                 switch (ch) {                  switch (ch) {
                 case 'd':                  case 'd':
                         dflag = 1;                          dflag = 1;
Line 85 
Line 92 
 }  }
   
 static int  static int
 cvs_release_sendflags(struct cvsroot *root)  cvs_release_pre_exec(struct cvsroot *root)
 {  {
         if (dflag && cvs_sendarg(root, "-d", 0) < 0)          if (dflag && cvs_sendarg(root, "-d", 0) < 0)
                 return (CVS_EX_PROTO);                  return (CVS_EX_PROTO);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7