README
1This directory contains some helpful Git tools.
2
3post-checkout and post-merge
4============================
5These hooks warn you about DEPS modifications so you will remember
6to run "gclient sync".
7
8To install these Git hooks, create symlinks like so:
9 ln -s $(pwd)/post-checkout $(git rev-parse --git-dir)/hooks
10 ln -s $(pwd)/post-merge $(git rev-parse --git-dir)/hooks
11
12
13git-graph
14=========
15Create a graph of the recent history of occurences of a grep
16expression in the project.
17
18suggest_owners
19==============
20
21A script to suggest new owners for subdirectories in a git repo based on commit
22count to the relevant subdirectory.
23
24usage: suggest_owners.py [-h] [--days-ago DAYS_AGO]
25 [--subdirectory SUBDIRECTORY]
26 [--ignore-authors IGNORE_AUTHORS]
27 [--max-suggestions MAX_SUGGESTIONS]
28 [--author-cl-limit AUTHOR_CL_LIMIT]
29 [--dir-commit-limit DIR_COMMIT_LIMIT]
30 repo_path
31
32positional arguments:
33 repo_path
34
35optional arguments:
36 -h, --help show this help message and exit
37 --days-ago DAYS_AGO Number of days of history to search through. (default:
38 365)
39 --subdirectory SUBDIRECTORY
40 Limit to this subdirectory (default: None)
41 --ignore-authors IGNORE_AUTHORS
42 Ignore this comma separated list of authors (default:
43 None)
44 --max-suggestions MAX_SUGGESTIONS
45 Maximum number of suggested authors per directory.
46 (default: 5)
47 --author-cl-limit AUTHOR_CL_LIMIT
48 Do not suggest authors who have commited less than
49 this to the directory. (default: 10)
50 --dir-commit-limit DIR_COMMIT_LIMIT
51 Merge directories with less than this number of
52 commits into their parent directory. (default: 100)
53
54