G-Node / G-Node/gin-cli

Improve git log parsing

Open
#158 1 comment 0 reactions 0 assignees View on GitHub
P2
Dominant language
Go
Stars
14
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Attempting to print the git log in a JSON-like format gets tricky fast. Two issues have appeared so far:
1. Multi-line strings (for example, the commit body)
2. Quotes in any value (for example, the commit message)

Either of these can break the JSON string.

Potential solutions:
- One log field per line, with prefix, and parse using regexp.
- YAML (not sure this would be much different from JSON).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.