            [org.eclipse.jgit.diff DiffEntry DiffFormatter]
            [org.eclipse.jgit.dircache DirCacheIterator]
            [org.eclipse.jgit.internal.storage.file FileRepository]
-           [org.eclipse.jgit.lib Repository]
+           [org.eclipse.jgit.lib PersonIdent Repository]
            [org.eclipse.jgit.revwalk RevCommit]
            [org.eclipse.jgit.treewalk EmptyTreeIterator FileTreeIterator]))
 

    [(-> repo .readDirCache DirCacheIterator.)
     (FileTreeIterator. repo)]))

(defn create-html
  [^Git git ^RevCommit commit]
  (h/html
    [:html
     [:body {:style (format "color: %s" (ui/html-color))}
      [:div {:class "head"} (or (some-> commit .getFullMessage)
                                (utils/get-string :uncommitted-changes))]
      (when commit
        (list [:div (format (utils/get-string :author)
                            (-> commit .getAuthorIdent .getEmailAddress))]
              [:div (format (utils/get-string :committer)
                            (-> commit .getCommitterIdent .getEmailAddress))]
              [:div (format (utils/get-string :commit-time)
                            (-> commit .getCommitTime utils/format-date))]))
      (let [out (ByteArrayOutputStream.)

  (:require [clojure.java.io :as io]
            [clojure.string :as string]
            [hiccup.core :as h]
            [hiccup.util :as hu]
            [nightcode.editors :as editors]
            [nightcode.shortcuts :as shortcuts]
            [nightcode.ui :as ui]
