OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """ | 6 """ |
7 Invokes the specified (quoted) command for all files modified | 7 Invokes the specified (quoted) command for all files modified |
8 between the current git branch and the specified branch or commit. | 8 between the current git branch and the specified branch or commit. |
9 | 9 |
10 The special token [[FILENAME]] (or whatever you choose using the -t | 10 The special token [[FILENAME]] (or whatever you choose using the -t |
11 flag) is replaced with each of the filenames of new or modified files. | 11 flag) is replaced with each of the filenames of new or modified files. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 extensions = opts.extensions | 106 extensions = opts.extensions |
107 if opts.cpp_only: | 107 if opts.cpp_only: |
108 extensions = _CPP_EXTENSIONS | 108 extensions = _CPP_EXTENSIONS |
109 | 109 |
110 ForAllTouchedFiles(opts.branch, extensions, opts.token, args[0]) | 110 ForAllTouchedFiles(opts.branch, extensions, opts.token, args[0]) |
111 | 111 |
112 | 112 |
113 if __name__ == '__main__': | 113 if __name__ == '__main__': |
114 main() | 114 main() |
OLD | NEW |