 ;;              (-> (.walk tree)
 ;;                  (.on "entry" #(js/console.log (.path %)))
 ;;                  (.start)))))
+
+;; (-> (get-file-history "test.md")
+;;     (.then #(js/console.log (clj->js %))))
+
+(-> (get-file-by-path "test.md")
+    (.then #(js/console.log (clj->js %))))

                            (mapv #(assoc
                                     {}
                                     :sha (.sha (.-commit %))
                                     :date (.date (.-commit %))
                                     :commit (.-commit %)) commits)))
                   (.catch #(js/console.error %)))))))

;; (-> (open-repo)
;;     (.then #(.getMasterCommit %))

      (nodegit.Repository.open)
      (.catch #(js/console.error "Something went wrong opening repo: " %))))

(defn get-entry-by-path [repo filepath]
  (-> repo
      (.then #(.getMasterCommit %))
      (.then #(.getEntry % filepath))))

(defn get-file-history
  [filepath]
