version 1.228, 2008/03/09 01:02:38 |
version 1.229, 2008/03/09 01:25:31 |
|
|
} |
} |
|
|
struct cvs_filelist * |
struct cvs_filelist * |
cvs_file_get(const char *name, int check_dir_tag, struct cvs_flisthead *fl) |
cvs_file_get(const char *name, int user_supplied, struct cvs_flisthead *fl) |
{ |
{ |
const char *p; |
const char *p; |
struct cvs_filelist *l; |
struct cvs_filelist *l; |
|
|
|
|
l = (struct cvs_filelist *)xmalloc(sizeof(*l)); |
l = (struct cvs_filelist *)xmalloc(sizeof(*l)); |
l->file_path = xstrdup(p); |
l->file_path = xstrdup(p); |
l->check_dir_tag = check_dir_tag; |
l->user_supplied = user_supplied; |
|
|
TAILQ_INSERT_TAIL(fl, l, flist); |
TAILQ_INSERT_TAIL(fl, l, flist); |
return (l); |
return (l); |
|
|
if (cf->file_type == CVS_DIR) { |
if (cf->file_type == CVS_DIR) { |
cvs_file_walkdir(cf, cr); |
cvs_file_walkdir(cf, cr); |
} else { |
} else { |
if (l->check_dir_tag) { |
if (l->user_supplied) { |
cvs_parse_tagfile(cf->file_wd, |
cvs_parse_tagfile(cf->file_wd, |
&cvs_directory_tag, NULL, NULL); |
&cvs_directory_tag, NULL, NULL); |
|
|