Skip to content

Configure the log format #58

@LandonSchropp

Description

@LandonSchropp

Thanks for creating such an awesome utility! I'm already enjoying using it. 🙂 Here's what my menu looks like so far:

Screen Shot 2022-05-14 at 3 09 08 PM

One thing I would love to change is the format of the commits in the log. I already have a nice git compact-log alias I wrote that displays the commits in a nice list.

Screen Shot 2022-05-14 at 3 20 38 PM

I'm sure everyone has their own preferences here. I personally really like the shortened commits, giving more room for the commit messages, and the colors, which make it easy to distinguish between different parts of the commit.

Rather than bikeshedding over the perfect message format, is it possible to configure it in git-fixup? Is there a configuration setting that could be added?

Here's my compact-log alias for reference.

  compact-log = log \
    --graph \
    --pretty=format:'%Cred%h %Cgreen(%cs)%Creset%Creset %s %C(bold blue)<%an>%C(yellow)%d%Creset' \
    --abbrev-commit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions