Benign wolfi Download

libgit2-dev 1.9.4-r1

File under a vendored native dependency pathReads a Git configuration file
SHA-256b5418da9c17282c38efde257645f0c18f1b75012fe8d2f2c0d3458813a98bc17
MaleculeO(Er)H(F)

Evidence

imports buffer.h lines 1–17
1/*
2 * Copyright (C) the libgit2 contributors. All rights reserved.
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7#ifndef INCLUDE_git_config_h__
8#define INCLUDE_git_config_h__
9
10#include "common.h"
11#include "types.h"
12#include "buffer.h"
13
14/**
15 * @file git2/config.h
16 * @brief Per-repository, per-user or per-system configuration
17 * @defgroup git_config Git config …
Source control credential paths lines 67–74
67:20… ation file is the user-specific configuration;
68 * typically `~/.gitconfig`.
69 */
70 GIT_CONFIG_LEVEL_GLOBAL = 4,
⋯4 lines
Hidden path under HOME variable lines 169–174
169:4… The user or global configuration file is usually
170 * located in `$HOME/.gitconfig`.
171 *
172 * This method will try to guess the full path to that
173 * file, if the file exists. The returned path
174 * may be used on any …
ProgramData directory path reference lines 215–220
215:25… e configuration file in ProgramData
216 *
217 * Look for the file in `%PROGRAMDATA%\Git\config` used by portable git.
218 *
219 * @param out Pointer to a user-allocated git_buf in which to store the path
220 * @return 0 if a …
Reads a Git configuration file lines 232–241
232:49… ce
233 * @return 0 or an error code
234 */
235GIT_EXTERN(int) git_config_open_default(git_config **out);
236
237/**
⋯4 lines

Showing the top 5 files — 1 more file (19 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.