From cf31fe9b4fb650b27e19f5d7ee7297e383660caf Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Tue, 21 Oct 2008 07:00:00 -0700 Subject: Initial Contribution --- subcmds/diff.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 subcmds/diff.py (limited to 'subcmds/diff.py') diff --git a/subcmds/diff.py b/subcmds/diff.py new file mode 100644 index 00000000..e0247140 --- /dev/null +++ b/subcmds/diff.py @@ -0,0 +1,27 @@ +# +# Copyright (C) 2008 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from command import PagedCommand + +class Diff(PagedCommand): + common = True + helpSummary = "Show changes between commit and working tree" + helpUsage = """ +%prog [...] +""" + + def Execute(self, opt, args): + for project in self.GetProjects(args): + project.PrintWorkTreeDiff() -- cgit v1.2.3-54-g00ecf