summaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2017-06-24 12:14:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-24 18:15:59 (GMT)
commit4904cbc9e195f1de2cb6ff3c5b3d5b756343ef44 (patch)
tree71c8a8346cd4c7438fcdf82f90d271e4411fbdfd /strbuf.h
parent6eced3ec5e5d7fbe61de2791e2627b1acf1246b3 (diff)
downloadgit-4904cbc9e195f1de2cb6ff3c5b3d5b756343ef44.zip
git-4904cbc9e195f1de2cb6ff3c5b3d5b756343ef44.tar.gz
git-4904cbc9e195f1de2cb6ff3c5b3d5b756343ef44.tar.bz2
strbuf.h comment: discuss strbuf_addftime() arguments in order
Change the comment documenting the strbuf_addftime() function to discuss the parameters in the order in which they appear, which makes this easier to read than discussing them out of order. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/strbuf.h b/strbuf.h
index 4559035..6708cef 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -340,10 +340,10 @@ extern void strbuf_vaddf(struct strbuf *sb, const char *fmt, va_list ap);
/**
* Add the time specified by `tm`, as formatted by `strftime`.
- * `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`.
+ * `tz_name` is used to expand %Z internally unless it's NULL.
*/
extern void strbuf_addftime(struct strbuf *sb, const char *fmt,
const struct tm *tm, int tz_offset,