X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=strbuf.h;h=3646a6291b5026fc6d9e211a0313d76e4d2e100d;hb=f2bb1218f1e559131887b5c981bc8d962b00d85a;hp=80047b1bb7b826699deff3e8c2590a2a00a5c121;hpb=f166aab8bf877d7448f5bc7257fd43db66983a55;p=git-core%2Fgit.git diff --git a/strbuf.h b/strbuf.h index 80047b1bb..3646a6291 100644 --- a/strbuf.h +++ b/strbuf.h @@ -264,12 +264,6 @@ static inline void strbuf_addstr(struct strbuf *sb, const char *s) extern void strbuf_addbuf(struct strbuf *sb, const struct strbuf *sb2); /** - * Copy part of the buffer from a given position till a given length to the - * end of the buffer. - */ -extern void strbuf_adddup(struct strbuf *sb, size_t pos, size_t len); - -/** * This function can be used to expand a format string containing * placeholders. To that end, it parses the string and calls the specified * function for every percent sign found. @@ -340,8 +334,14 @@ extern void strbuf_vaddf(struct strbuf *sb, const char *fmt, va_list ap); /** * Add the time specified by `tm`, as formatted by `strftime`. - */ -extern void strbuf_addftime(struct strbuf *sb, const char *fmt, const struct tm *tm); + * `tz_name` is used to expand %Z internally unless it's NULL. + * `tz_offset` is in decimal hhmm format, e.g. -600 means six hours west + * of Greenwich, and it's used to expand %z internally. However, tokens + * with modifiers (e.g. %Ez) are passed to `strftime`. + */ +extern void strbuf_addftime(struct strbuf *sb, const char *fmt, + const struct tm *tm, int tz_offset, + const char *tz_name); /** * Read a given size of data from a FILE* pointer to the buffer.