Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
cache.h: extract enum declaration from inside a struct declaration
author
Johannes Schindelin
<johannes.schindelin@gmx.de>
Mon, 30 Jul 2018 15:42:49 +0000
(08:42 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 30 Jul 2018 20:14:38 +0000
(13:14 -0700)
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>
cache.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
dee3382
)
diff --git
a/cache.h
b/cache.h
index 8b447652a7e94ad31fd28134e0f548baa37265db..cdb489fca37bc683f23210953bf92a1a7ba32e9b 100644
(file)
--- 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);
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 {
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;
};
const char *strftime_fmt;
int local;
};