Age | Commit message (Collapse) | Author | Files | Lines |
|
For submodules, the .git file is just a file, not a directory.
|
|
The `--contains` option (default, enabled via `-vfast=0`) does not
show a result if there is no tag following a commit. The `-vcache_only`
option prevents execution of `git describe` and thereby speeds up
post-processing.
|
|
`--contains` does exactly what I need (show which tag contains the
commit), but it is very slow when getting deeper in the history.
(500 ms vs 30000ms for a subdirectory from v3.0..v3.13-rc1 with 100
commits.
For future reproduction, the command `git log v3.0..v3.13-rc1
drivers/net/wireless/rt2x00 | git-log-describe.awk` takes
12:20 minutes to complete for the slow mode (using `--contains`) where
it is finished in only 19 seconds for the fast mode (using
`--first-parent). After the cache is filled, this time gets reduced to
slightly more than a second.
|
|
|
|
Instead of showing where a commit was derived from, use `--contains` to
show a description relative to a tag containing the commit.
|
|
git-describe is slow, this change allows the output to be cached in
a directory using two levels (first two chars of hash for a directory,
the remaining 38 for the file). Set `-vcache=1` to enable the cache
or specify a custom cache directory with `-vcache_dir=DIR`.
On the Linux tree, this feature decreases the run time from 18 seconds
to just one second (with .git in already in disk cache for both trials
and 466 commits for a certain path).
|
|
Some commits failed to match in an decorated log because they used
a bold-face color (like `\e[1;94m`).
|
|
To avoid funny color effects when doing:
git log --color | git-log-describe.awk | less -RN
|
|
|
|
As of today (2013-11-22) there is still no support for adding an
indication of tag to the output of git log. This script post-processes
the output of `git log` and adds the output of `git describe
--first-parent` to line following the commit ID.
For a version suitable for `git log --oneline`, see [1].
[1]: http://stackoverflow.com/q/17379010/427545
|