Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

git --no-pager log -1 pretty=format my_file #612

@posito

Description

@posito

Hello,

I am trying to find the way to get the last commit on a file. I am doing it this way today...

exec.Command("git","--no-pager", "log", "-1", `--pretty=format:"%ad"`, file).Output()

Is there a better way ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions