summaryrefslogtreecommitdiff
path: root/git-log-describe.awk
AgeCommit message (Collapse)AuthorFilesLines
2015-08-08git-log-describe.awk: fix submodule casePeter Wu1-3/+3
For submodules, the .git file is just a file, not a directory.
2013-11-23git-log-describe.awk: allow limiting to cachePeter Wu1-1/+6
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.
2013-11-23git-log-describe: -vfast={0|1} toggle for speedPeter Wu1-3/+14
`--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.
2013-11-23git-log-describe: Fix filedescriptors leakPeter Wu1-3/+9
2013-11-23git-log-describe: describe first tag following a commitPeter Wu1-3/+12
Instead of showing where a commit was derived from, use `--contains` to show a description relative to a tag containing the commit.
2013-11-22git-log-describe: introduce cache to speed up git-describePeter Wu1-9/+83
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).
2013-11-22git-log-describe: match more color escapesPeter Wu1-1/+1
Some commits failed to match in an decorated log because they used a bold-face color (like `\e[1;94m`).
2013-11-22git-log-describe: stop color on linePeter Wu1-1/+2
To avoid funny color effects when doing: git log --color | git-log-describe.awk | less -RN
2013-11-22git-log-describe: match only git's "commit" textPeter Wu1-0/+2
2013-11-22git-log-describe: add git-describe output to git-logPeter Wu1-0/+34
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