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>
This commit is contained in:
parent
dee338236b
commit
58930fdb19
6
cache.h
6
cache.h
@ -1362,7 +1362,6 @@ extern void *read_object_with_reference(const struct object_id *oid,
|
|||||||
extern struct object *peel_to_type(const char *name, int namelen,
|
extern struct object *peel_to_type(const char *name, int namelen,
|
||||||
struct object *o, enum object_type);
|
struct object *o, enum object_type);
|
||||||
|
|
||||||
struct date_mode {
|
|
||||||
enum date_mode_type {
|
enum date_mode_type {
|
||||||
DATE_NORMAL = 0,
|
DATE_NORMAL = 0,
|
||||||
DATE_RELATIVE,
|
DATE_RELATIVE,
|
||||||
@ -1373,7 +1372,10 @@ struct date_mode {
|
|||||||
DATE_STRFTIME,
|
DATE_STRFTIME,
|
||||||
DATE_RAW,
|
DATE_RAW,
|
||||||
DATE_UNIX
|
DATE_UNIX
|
||||||
} type;
|
};
|
||||||
|
|
||||||
|
struct date_mode {
|
||||||
|
enum date_mode_type type;
|
||||||
const char *strftime_fmt;
|
const char *strftime_fmt;
|
||||||
int local;
|
int local;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user