]> git.ipfire.org Git - thirdparty/git.git/blobdiff - trace2.h
t3320: use git-symbolic-ref rather than filesystem access
[thirdparty/git.git] / trace2.h
index e5e81c05332f1352fd62935e5fe2d87c519f3567..ede18c2e06373f30679a6c0ecf77b794225edbc5 100644 (file)
--- a/trace2.h
+++ b/trace2.h
@@ -182,6 +182,19 @@ void trace2_cmd_list_config_fl(const char *file, int line);
 
 #define trace2_cmd_list_config() trace2_cmd_list_config_fl(__FILE__, __LINE__)
 
+/*
+ * Emit one or more 'def_param' events for "important" environment variables.
+ *
+ * Use the TR2_SYSENV_ENV_VARS setting to register a comma-separated list of
+ * environment variables considered important.  For example:
+ *     git config --system trace2.envVars 'GIT_HTTP_USER_AGENT,GIT_CONFIG'
+ * or:
+ *     GIT_TRACE2_ENV_VARS="GIT_HTTP_USER_AGENT,GIT_CONFIG"
+ */
+void trace2_cmd_list_env_vars_fl(const char *file, int line);
+
+#define trace2_cmd_list_env_vars() trace2_cmd_list_env_vars_fl(__FILE__, __LINE__)
+
 /*
  * Emit a "def_param" event for the given config key/value pair IF
  * we consider the key to be "important".
@@ -487,4 +500,6 @@ void trace2_collect_process_info(enum trace2_process_info_reason reason);
        } while (0)
 #endif
 
+const char *trace2_session_id(void);
+
 #endif /* TRACE2_H */