]> git.ipfire.org Git - thirdparty/git.git/blame - trace2/tr2_sysenv.h
Merge branch 'jt/fetch-pack-record-refs-in-the-dot-promisor'
[thirdparty/git.git] / trace2 / tr2_sysenv.h
CommitLineData
bce9db6d
JH
1#ifndef TR2_SYSENV_H
2#define TR2_SYSENV_H
3
4/*
5 * The Trace2 settings that can be loaded from /etc/gitconfig
6 * and/or user environment variables.
7 *
8 * Note that this set does not contain any of the transient
9 * environment variables used to pass information from parent
e4b75d6a 10 * to child git processes, such "GIT_TRACE2_PARENT_SID".
bce9db6d
JH
11 */
12enum tr2_sysenv_variable {
13 TR2_SYSENV_CFG_PARAM = 0,
14
15 TR2_SYSENV_DST_DEBUG,
16
17 TR2_SYSENV_NORMAL,
18 TR2_SYSENV_NORMAL_BRIEF,
19
20 TR2_SYSENV_EVENT,
21 TR2_SYSENV_EVENT_BRIEF,
22 TR2_SYSENV_EVENT_NESTING,
23
24 TR2_SYSENV_PERF,
25 TR2_SYSENV_PERF_BRIEF,
26
83e57b04
JS
27 TR2_SYSENV_MAX_FILES,
28
bce9db6d
JH
29 TR2_SYSENV_MUST_BE_LAST
30};
31
32void tr2_sysenv_load(void);
33
34const char *tr2_sysenv_get(enum tr2_sysenv_variable);
35const char *tr2_sysenv_display_name(enum tr2_sysenv_variable var);
36void tr2_sysenv_release(void);
37
38#endif /* TR2_SYSENV_H */