Skip to content

git.log should support single string format #883

Open
@drschwabe

Description

@drschwabe

Git offers a set of built-in single string formats ie- 'oneline, short, full, fuller' so git-js's git.log fn's format option should likewise adopt this shortcut to return the set of key/values which correspond to each said format.

git.log({ format : 'fuller'})

would return Git's 'fuller' set of values; from pretty-formats.txt

commit <hash>
Author:     <author>
AuthorDate: <author-date>
Commit:     <committer>
CommitDate: <committer-date>

(as a JS obj)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions