mirror of
https://github.com/git/git.git
synced 2024-10-30 05:47:53 +01:00
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
1 changed files with 13 additions and 11 deletions
24
cache.h
24
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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue