• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..12-Nov-2020-

OWNERSH A D07-Nov-202098 32

READMEH A D07-Nov-20201.9 KiB5443

for-all-touched-files.pyH A D07-Nov-20204.3 KiB12995

git-diff-ide.pyH A D07-Nov-20202.6 KiB9655

git-utils.shH A D07-Nov-2020395 1811

graph.shH A D07-Nov-20201.1 KiB4329

mass-rename.pyH A D07-Nov-20201.5 KiB5740

mass-rename.shH A D07-Nov-2020732 182

mffr.pyH A D07-Nov-20206.6 KiB182137

move_source_file.batH A D07-Nov-2020147 76

move_source_file.pyH A D07-Nov-20209.4 KiB267175

post-checkoutH A D07-Nov-2020711 2314

post-mergeH A D07-Nov-2020382 135

suggest_owners.pyH A D07-Nov-202012.5 KiB357265

update-copyrights.shH A D07-Nov-2020326 82

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