Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: tools/git/for-all-touched-files.py

Issue 8678023: Fix python scripts in src/tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/generate_stubs/generate_stubs_unittest.py ('k') | tools/gypv8sh.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « tools/generate_stubs/generate_stubs_unittest.py ('k') | tools/gypv8sh.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698