libgit2 / libgit2/libgit2sharp

Add properties Section and SubSection for class ConfigurationEntry

Open
#1,693 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.5k
Forks
925
PR merge metrics
No merged PRs in 30d

Description

The simple git config file syntax:

[section "subsection"]
	keyname = value

Add properties Section and SubSection for class ConfigurationEntry

public class ConfigurationEntry<T>
{
	protected ConfigurationEntry();
	protected internal ConfigurationEntry(string key, T value, ConfigurationLevel level);

	public virtual string Key { get; }
	public virtual string KeyName { get; }		
        public virtual string Section { get; }
        public virtual string SubSection { get; }
	public virtual T Value { get; }
	public virtual ConfigurationLevel Level { get; }
}
Version of LibGit2Sharp

0.26.0.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the ConfigurationEntry class and the code that parses Git configuration entries. Check how section and subsection values are represented, then expose Section and SubSection as specified in the issue. Done means callers can read both properties for entries using the shown Git config syntax, with existing configuration behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devtools
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.