summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2012-05-04Be explicit about 'in-place'Johann
On darwin, sed expects an argument for '-i'. Make it empty. Change-Id: I5dc6cdf667a754b2624f1767eb6e8025df48e308
2012-04-12FTFY: Check for astyle and versionJohann
Change-Id: I377387681332cfc975254cd825e4ad2998271690
2012-04-12FTFY: fix syntax errorJohn Koleszar
Change-Id: I1952608479954c07f3556f96ea3de9118216bf27
2012-04-03FTFY: only apply on modified filesJohn Koleszar
Ignore renamed, copied, and deleted files when applying the style rules. Change-Id: I6102e34f833e5c2ef7a88d6d57bbfdca51b25d94
2012-03-29tools/wrap-commit-msg.py: fix file truncationJames Zern
truncate() operates from the current file pointer position. On at least Linux specifying 0 without resetting the pointer will pad the file with zeros to the current offset. Change-Id: Ide704a1097f46c0c530f27212bb12e923f93e2d6
2012-03-29FTFY: support wordwrapping commit messagesJohn Koleszar
It's common for commit messages to be wrapped at odd places. git-gui is often to blame. Adds support for automatically fixing up these messages if running ftfy --amend, and adds a new option --msg-only for fixing only the commit message. Change-Id: Ia7ea529f8cb7395d34d9b39f1192598e9a1e315b
2012-03-28FTFY: an automated style correctorJohn Koleszar
This is a utility for applying a limited amount of style correction on a change-by-change basis. Rather than a big-bang reformatting, this tool attempts to only correct the style in diff hunks that you touch. This should make the cosmetic changes small enough that we can mix them with functional changes without destroying the diffs, and there's an escape hatch for separating the reformatting to a second commit for purists and cases where it hurts readability. At this time, the script requires a clean working tree, so run it after you've commited your changes. Run without arguments, the style corrections will be applied and left unstaged in your working copy. It also supports the --amend option, which will automatically amend your HEAD with the corrected style, and --commit, which will create a new change dependent on your HEAD that contains only the whitespace changes. There are a number of ways this could be applied in an automated manner if this proves to be useful, either on a project-wide or per-user basis. This doesn't buy anything in terms of real code quality, the intent here would be to keep formatting nits out of review comments in favor of more meaningful ones and help people whose habitual style doesn't match the baseline. Requires astyle[1] 1.24 or newer. [1]: http://astyle.sourceforge.net/ Change-Id: I2fb3434de8479655e9811f094029bb90e5d757e1
2011-08-19tools: author_first_release.shJohn Koleszar
First version of a simple tool to get a list of the version a user first contributed to. Change-Id: I8f1b1fef5343de269c4b6209632c9cedc2cf1a37
2010-06-16Generate AUTHORS file with a scriptJohn Koleszar
This information is in git, so it's better to use that as a source than updating this file manually. This script can be run manually at release time for now, or we can set up a cron job sometime in the future. Change-Id: I0344135ceb9c04ed14e2e2d939a93194e35973db