     (map #(commit-info repo % formatter) (jgit.q/rev-list repo))))
 
 (defn setup []
-  (repo-info "https://github.com/tonsky/datascript.git"))
+ (repo-info "https://github.com/tonsky/datascript.git"))
+;  (spit "test_rails" (prn-str (repo-info "https://github.com/rails/rails.git"))))
 

  (let [stats (atom {})
        stream (ByteArrayOutputStream.)
        reader (-> repo .getRepository .newObjectReader)
        formatter (proxy [DiffFormatter achivement.git.IDiffStatsProvider] [stream]
                    (writeAddedLine [text line]
                      (swap! stats update-in [:added] (fnil inc 0)))
                    (writeRemovedLine [text line]
                      (swap! stats update-in [:deleted] (fnil inc 0)))
                    (treeIterator [commit] 
                      (if commit
                        (doto (CanonicalTreeParser.) (.reset reader (.getTree commit)))
                        (EmptyTreeIterator.)))
                    (calculateStats [diffs]
                      (.reset stream)
                      (reset! stats nil)
                      (proxy-super format diffs)
                      (proxy-super flush)
                      @stats))]
    (doto formatter
      (.setRepository (.getRepository repo))
      (.setDiffComparator RawTextComparator/DEFAULT))))

            :email (.getEmailAddress ident)
            :time time
            :message message
            :changed-files (mapv parse-diff-entry diffs)
            :merge (> (.getParentCount rev-commit) 1)}
           (.calculateDiffs df diffs))))

(defn- repo-info [url]
  (let [repo (load-repo url)
