GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — A config key written without a value is dropped, where git reads it as true · Issue #2237 · gitpython-developers/GitPython Closed Closed Copy link Description
[flag]
enabled>>> GitConfigParser("cfg", read_only=True).get_value("flag", "enabled") NoOptionError The key is not stored at all. else: # Check if it's an option with no value - it's just ignored by git. if not self.OPTVALUEONLY.match(line): The comment is the part I would fix first regardless of the rest: git does not ignore it. One constraint on any fix, which is why I am asking rather than sending a patch. git distinguishes a valueless key from an empty one, and they differ exactly where it matters: So storing There is also a write-back question: such a key is currently dropped on a read-modify-write, and once it parses it would need to be written back without an Happy to send the patch with tests if you tell me which representation you want; the write-back ripple is the reason I have not guessed. Found with git 2.50.1 and GitPython at a9913c7. Assisted-by: Claude Opus 5 (Claude Code), per the identification rule in CONTRIBUTING.md. Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |