mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
The output of `git log` is not exactly in chronological order. The
default sort option (--date-order) is described in the man page as
follows:
Show no parents before all of its children are shown, but otherwise
show commits in the commit timestamp order.
The `uniq` program will only remove duplicate lines if they follow each
other. In order for this to work correctly, we need to ensure that the
list of dates is exactly in chronological order. There doesn't seem to
be a `git log` option to achieve this, but we can use the `sort`
program. I used reverse sort (`sort -r`) since the output will be roughly
reverse-sorted already.
It's also worth noting that the default --date-order option sorts by
commit date, but git-summary uses *author* date (%ai). Passing
--author-date-order doesn't fix this issue, though, so I didn't change
that.
At the time of writing, this change reduces the number of 'active days'
for git-extras.git from 367 to 331.
|
||
|---|---|---|
| bin | ||
| etc | ||
| helper | ||
| man | ||
| AUTHORS | ||
| Commands.md | ||
| History.md | ||
| install.cmd | ||
| install.sh | ||
| Installation.md | ||
| LICENSE | ||
| Makefile | ||
| Makefile.msys | ||
| Readme.md | ||
Git Extras
Little git extras.
Screencasts
Just getting started? Check out these screencasts:
- introduction -- covering git-ignore, git-setup, git-changelog, git-release, git-effort and more
Installation
See Installation page.
Commands
Go to Commands page for basic usage and examples.
GIT utilities -- repo summary, repl, changelog population, author commit percentages and more