Skip to content

Capacity to manage NoWrites at LocalConfig level #17

Description

@SR-G

Except if i missed it, i don't see how to handle at "LocalConfig" level the Write/Persist behavior.

	localCfg, err := gitconfig.LoadConfig(".git/config")
	if err != nil {
		log.Fatal(err)
	}
        localCfg.Write() <-- not available
        localCfg.NoWrites = false <-- not possible

The "NoWrites" behavior is probably inherited from "global config", but for usages only relying on LocalConfig (for example), it should be possible to locally overwrite it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions