summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-07-30 15:42:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-30 20:14:38 (GMT)
commit58930fdb195d55d25d84c7d6ba2e2976d78a423d (patch)
treeb0571eef90da9ff943fb3ce96b2d16715acc20b3 /cache.h
parentdee338236bbef71639149ba90ec60cb732b73cd0 (diff)
downloadgit-58930fdb195d55d25d84c7d6ba2e2976d78a423d.zip
git-58930fdb195d55d25d84c7d6ba2e2976d78a423d.tar.gz
git-58930fdb195d55d25d84c7d6ba2e2976d78a423d.tar.bz2
cache.h: extract enum declaration from inside a struct declaration
While it is technically possible, it is confusing. Not only the user, but also VS Code's intellisense. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/cache.h b/cache.h
index 8b44765..cdb489f 100644
--- a/cache.h
+++ b/cache.h
@@ -1362,18 +1362,20 @@ extern void *read_object_with_reference(const struct object_id *oid,
extern struct object *peel_to_type(const char *name, int namelen,
struct object *o, enum object_type);
+enum date_mode_type {
+ DATE_NORMAL = 0,
+ DATE_RELATIVE,
+ DATE_SHORT,
+ DATE_ISO8601,
+ DATE_ISO8601_STRICT,
+ DATE_RFC2822,
+ DATE_STRFTIME,
+ DATE_RAW,
+ DATE_UNIX
+};
+
struct date_mode {
- enum date_mode_type {
- DATE_NORMAL = 0,
- DATE_RELATIVE,
- DATE_SHORT,
- DATE_ISO8601,
- DATE_ISO8601_STRICT,
- DATE_RFC2822,
- DATE_STRFTIME,
- DATE_RAW,
- DATE_UNIX
- } type;
+ enum date_mode_type type;
const char *strftime_fmt;
int local;
};