git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[ANNOUNCE] git-log-compact v1.0

From
Kyle J. McKay <mackyle@gmail.com>
Date
Oct 20, 2016, 00:13 UTC
Message-ID
<git-log-compact-announce-v1@mackyle-at-gmail-com>
> NOTE: If you read the excellent Git Rev News [1], then you
> already know all about git-log-compact :)

The git-log-compact script provides a compact alternative to the `git log --oneline` output that includes dates, times and author and/or committer initials in a space efficient output format.

`git-log-compact` is intended to fill the gap between the single line `--oneline` log output format and the multiline `--pretty=short` / `--pretty=medium` output formats.

It is not strictly a one line per commit output format (but almost) and while it only shows the title of each commit (like the short format) it does include author and date information (similarly to the medium format) except that timestamps are shown very compactly and author/committer names are shown as initials.

This allows one to get a complete view of repository activity in a very compact output format that can show many commits per screen full and is fully compatible with the `--graph` option.

Simple example output from the Git repository:
git log-compact --graph --date-order --decorate --no-merges -n 5 v2.5.3
    === 2015-09-17 ===
  * ee6ad5f4 12:16 jch (tag: v2.5.3) Git 2.5.3
    === 2015-09-09 ===
  * b9d66899 14:22 js  am --skip/--abort: merge HEAD/ORIG_HEAD tree into index
  |   === 2015-09-04 ===
  | * 27ea6f85 10:46 jch (tag: v2.5.2) Git 2.5.2
  * 74b67638 10:36 jch (tag: v2.4.9) Git 2.4.9
                       ..........
  * ecad27cf 10:32 jch (tag: v2.3.9) Git 2.3.9

I have been wanting a compact one line output format that included dates, times and initials for some time that is compatible with --graph, clearly shows root commits and eliminates confusion over whether or not two adjacent lines in the output are related as parent/child (the --show-linear-break option does not work with --graph).

The git-log-compact utility is the result. Except for --notes, --pretty and --format options (which would make the output a non-oneline format) any other `git log` option may be used (including things like --cherry-mark, --patch, --raw, --stat, --summary, --show-linear-break etc.),

There are a few new options specific to git-log-compact which are described in the README and the `git-log-compact -h` output that can be used to alter the dates, times and/or initials displayed.

The project page with detailed help and many screen shots is located at:
  https://mackyle.github.io/git-log-compact/
Alternatively the repository can be cloned from:
  https://github.com/mackyle/git-log-compact.git

Or the script file itself (which is really all you need) can be viewed/fetched from:

  https://github.com/mackyle/git-log-compact/blob/HEAD/git-log-compact

The git-log-compact script should work with any version of Git released in the last several years.

--Kyle
[1] https://git.github.io/rev_news/2016/10/19/edition-20/
Next: Kevin Daudt
Message 1 of 2 in “[ANNOUNCE] git-log-compact v1.0”
  1. Kyle J. McKayOct 20, 2016
  2. Kevin DaudtOct 20, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.