Patches: Browse | Submit New | Admin

[#22224] piston diff should ignore its own .tmp dirs

Date:
2008-09-29 18:02
Priority:
3
Submitted By:
Josh French (jfrench)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
piston diff should ignore its own .tmp dirs

Detailed description
piston diff should ignore the newly created .tmp dir. Currently it attempts to recurse into my_project/.tmp and diff
it with my_project/.tmp/.tmp.


Index: tags/1.4.0/lib/piston/commands/diff.rb
===================================================================
--- tags/1.4.0/lib/piston/commands/diff.rb	(revision 141)
+++ tags/1.4.0/lib/piston/commands/diff.rb	(working copy)
@@ -33,7 +33,7 @@
       end
 
       def run_diff(dir1, dir2)
-        `diff -urN --exclude=.svn #{dir1} #{dir2}`
+        `diff -urN --exclude=.svn --exclude=#{dir2.tmp} #{dir1} #{dir2}`
       end
 
       def self.help

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item