version 1.89, 2008/02/09 17:01:43 |
version 1.90, 2008/02/09 20:04:00 |
|
|
xfree(l); |
xfree(l); |
} |
} |
|
|
|
/* |
|
* cvs_ent_line_str() |
|
* |
|
* Build CVS/Entries line. |
|
* |
|
*/ |
|
void |
|
cvs_ent_line_str(const char *name, char *rev, char *tstamp, char *opts, |
|
char *sticky, int isdir, int isremoved, char *buf, size_t len) |
|
{ |
|
if (isdir == 1) { |
|
(void)xsnprintf(buf, len, "D/%s////", name); |
|
return; |
|
} |
|
|
|
(void)xsnprintf(buf, len, "/%s/%s%s/%s/%s/%s", |
|
name, isremoved == 1 ? "-" : "", rev, tstamp, opts, sticky); |
|
} |
|
|
void |
void |
cvs_ent_free(struct cvs_ent *ent) |
cvs_ent_free(struct cvs_ent *ent) |
{ |
{ |