[libcode-tidyall-perl] 85/374: add path

Jonas Smedegaard js at alioth.debian.org
Sun Sep 29 22:25:53 UTC 2013


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libcode-tidyall-perl.

commit 4fd6cad52b839136e510318dc7e3c9eb8c0d217c
Author: Jonathan Swartz <swartz at pobox.com>
Date:   Fri Jul 6 16:54:55 2012 -0700

    add path
---
 Changes                    |    3 +--
 lib/Code/TidyAll/Result.pm |    6 +++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/Changes b/Changes
index 5e1b4d5..142d8e6 100644
--- a/Changes
+++ b/Changes
@@ -5,8 +5,7 @@ Revision history for Code-TidyAll
 0.03  Jul 3, 2012
 
 * Improvements
-  - Only scan the project hierarchy for --all (process_all). When files are specified,
-    just determine plugins for those files.
+  - When only specified files are being processed, don't scan the whole hierarchy.
 
 0.02  Jul 3, 2012
 
diff --git a/lib/Code/TidyAll/Result.pm b/lib/Code/TidyAll/Result.pm
index f686789..8483a7b 100644
--- a/lib/Code/TidyAll/Result.pm
+++ b/lib/Code/TidyAll/Result.pm
@@ -2,7 +2,7 @@ package Code::TidyAll::Result;
 use strict;
 use warnings;
 
-use Object::Tiny qw(msg state new_contents);
+use Object::Tiny qw(msg path state new_contents);
 
 sub error { return $_[0]->state eq 'error' }
 sub ok { return $_[0]->state ne 'error' }
@@ -36,6 +36,10 @@ returned from L<Code::TidyAll::process_files|Code::TidyAll/process_files>.
 
 =over
 
+=item path
+
+The path that was processed, relative to the root (e.g. "lib/Foo.pm")
+
 =item state
 
 A string, one of

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcode-tidyall-perl.git



More information about the Pkg-perl-cvs-commits mailing list