README 1.9 KB

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