Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Create a handler to return log message and textual diff for a given ref of a repository #164

Open
scorphus opened this issue Sep 4, 2014 · 1 comment
Assignees

Comments

@scorphus
Copy link
Contributor

scorphus commented Sep 4, 2014

Something like:

GET /repository/:name/show/:ref

That returns:

[
    {
        "ref": "f0a0b3e8e8d3f3f0a9a6e6e3e4a9d4e2d9a0c9c7",
        "parent": "e2e9e4a1d3d9e3a0c8c3e1a4e9d2a3e0e6e1a8e6",
        "title": "Do something",
        "diff": "…", # The actual diff
        "author": {
            "name": "Doge Dog",
            "email": "[email protected]"
        },
        "committer": {
            "name": "Dog Doge",
            "email": "[email protected]"
        },
        "created_at": "Thu Sep 4 20:48:18 2014 -0300"
    }
]
@scorphus scorphus self-assigned this Sep 4, 2014
@scorphus
Copy link
Contributor Author

scorphus commented Sep 5, 2014

To fulfill this feature, one should choose to use the following:

git show <ref> --pretty="format:%H%x09%an%x09%ae%x09%ad%x09%cn%x09%ce%x09%cd%x09%P%x09%s"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant