summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-15 22:08:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-15 22:08:26 (GMT)
commit30cf1911e2119eda55d9376c9cc2eda893fe6692 (patch)
treee54092c0e0c17faccffeceef5e2f6a33bbabc2b9 /cache.h
parent88f240734fb2df7d4fe0a26f86434049429a3a5e (diff)
parent12861e200a0e530f5293374a9507c6aea0359e25 (diff)
downloadgit-30cf1911e2119eda55d9376c9cc2eda893fe6692.zip
git-30cf1911e2119eda55d9376c9cc2eda893fe6692.tar.gz
git-30cf1911e2119eda55d9376c9cc2eda893fe6692.tar.bz2
Merge branch 'js/vscode'
Add a script (in contrib/) to help users of VSCode work better with our codebase. * js/vscode: vscode: let cSpell work on commit messages, too vscode: add a dictionary for cSpell vscode: use 8-space tabs, no trailing ws, etc for Git's source code vscode: wrap commit messages at column 72 by default vscode: only overwrite C/C++ settings mingw: define WIN32 explicitly cache.h: extract enum declaration from inside a struct declaration vscode: hard-code a couple defines contrib: add a script to initialize VS Code configuration
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 8cf62b5..1398b2a 100644
--- a/cache.h
+++ b/cache.h
@@ -1423,18 +1423,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;
};