8000 Improve Configuration.Get documentation · ben/libgit2sharp@49cdb22 · GitHub
[go: up one dir, main page]

Skip to content

Commit 49cdb22

Browse files
yorahnulltoken
authored andcommitted
Improve Configuration.Get documentation
1 parent b7d44cf commit 49cdb22

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

LibGit2Sharp/Configuration.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,15 @@ protected virtual void Dispose(bool disposing)
154154
/// <summary>
155155
/// Get a configuration value for a key. Keys are in the form 'section.name'.
156156
/// <para>
157+
/// The same escalation logic than in git.git will be used when looking for the key in the config files:
158+
/// - local: the Git file in the current repository
159+
/// - global: the Git file specific to the current interactive user (usually in `$HOME/.gitconfig`)
160+
/// - XDG: another Git file specific to the current interactive user (usually in `$HOME/.config/git/config`)
161+
/// - system: the system-wide Git file
162+
///
163+
/// The first occurence of the key will be returned.
164+
/// </para>
165+
/// <para>
157166
/// For example in order to get the value for this in a .git\config file:
158167
///
159168
/// <code>

0 commit comments

Comments
 (0)
0