<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -249,13 +249,21 @@
         (setq *textmate-project-root* nil))))
   *textmate-project-root*)
 
+(defun root-match(root names)
+	(member (car names) (directory-files root)))
+
+(defun root-matches(root names)
+	(if (root-match root names) 
+			(root-match root names) 
+			(if (eq (length (cdr names)) 0)
+					'nil
+					(root-matches root (cdr names))
+					)))
+
 (defun textmate-find-project-root (&amp;optional root)
   (when (null root) (setq root default-directory))
   (cond
-   ((or 
-		 (member &quot;.git&quot; (directory-files root)) 
-		 (member &quot;Rakefile&quot; (directory-files root))
-		 (member &quot;Makefile&quot; (directory-files root)))
+   ((root-matches root  '(&quot;.git&quot; &quot;Rakefile&quot; &quot;Makefile&quot; &quot;README&quot; &quot;build.xml&quot;))
 		(expand-file-name root))
    ((equal (expand-file-name root) &quot;/&quot;) nil)
    (t (textmate-find-project-root (concat (file-name-as-directory root) &quot;..&quot;)))))
@@ -290,4 +298,4 @@ A place is considered `tab-width' character columns.&quot;
         (funcall (cadr mode) -1)))))
 
 (provide 'textmate)
-;;; textmate.el ends here
+;;; textmate.el ends here
\ No newline at end of file</diff>
      <filename>textmate.el</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2b34699e5fba3e6aed876afa1fd9df95d950815c</id>
    </parent>
  </parents>
  <author>
    <name>irfn</name>
    <email>mail.urfi@gmail.com</email>
  </author>
  <url>http://github.com/defunkt/textmate.el/commit/6ad86eee284af991c0fe0e7369b730fd64c3778f</url>
  <id>6ad86eee284af991c0fe0e7369b730fd64c3778f</id>
  <committed-date>2009-08-11T10:01:16-07:00</committed-date>
  <authored-date>2009-08-11T10:01:16-07:00</authored-date>
  <message>Refactor to a nicer way to extend the project roots</message>
  <tree>84b848e6361c9d9b831c86f7c51552c3bd1951eb</tree>
  <committer>
    <name>irfn</name>
    <email>mail.urfi@gmail.com</email>
  </committer>
</commit>
