Open SD10 opened 6 years ago
YESSSS this would be awesome! I was thinking something similar the other day when I realized that GitHub.com shows you the rest of the file context w/ the patch applied. If we typed the diff hunk out we could do so many more fun UI things!
We already had a simplified version of this here but back then there was no interest: https://github.com/weyert/GitHawk/tree/code-text-view https://github.com/weyert/GitHawk/blob/code-text-view/Classes/Utility/Parsers/DiffParser.swift https://github.com/weyert/GitHawk/blob/code-text-view/Classes/Issues/Files/IssuePatchContentViewController.swift
Maybe it's useful to have a look at it again?
Iād love this.
@rnystrom Unfortunately no š¢ Occasionally, I think about fixing the few edge cases in GitDiffSwift and then transferring it to the GitHawk organization -- but I'm pretty swamped with work right now
I've been working on a git diff parser for another project and wondered if it could be of any benefit to GitHawk. I've been too busy to contribute lately but if I can kill two birds with this stone, that would be š
I'm thinking this could give us richer text highlighting and you also would have access to line numbers.
Library is still in progress, will be fully unit tested over the next couple of days.
We just need to download the raw diff file from the PR url then it gets parsed into the following model: