Variable: majutsu-diff--revision-metadata-template

majutsu-diff--revision-metadata-template is a variable defined in majutsu-diff.el.

Value

"concat(join(\"\\0\", label(\"change_id\", json(self.change_id())), label(\"local_bookmarks map join name\", json(self.local_bookmarks().map(|ref| ref.name()))), label(\"remote_bookmarks map join name remote\", concat(\"[\", self.remote_bookmarks().map(|ref| concat(\"[\", json(ref.name()), \",\", json(ref.remote()), \"]\")).join(\",\"), \"]\")), label(\"commit_id\", json(self.commit_id())), label(\"author name\", json(self.author().name())), label(\"author email\", json(self.author().email())), label(\"author timestamp format\", json(self.author().timestamp().format(\"%a %b %e %T %Y %z\"))), label(\"committer name\", json(self.committer().name())), label(\"committer email\", json(self.committer().email())), label(\"committer timestamp format\", json(self.committer().timestamp().format(\"%a %b %e %T %Y %z\"))), label(\"description\", json(self.description()))), \"\\0\")"

Documentation

Template for labelled, unambiguous revision metadata tokens.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-diff.el
(defconst majutsu-diff--revision-metadata-template
  (majutsu-template-compile
   `[:concat
     [:join ,majutsu-diff--revision-metadata-separator
            [:label "change_id" [:json [:change_id]]]
            [:label "local_bookmarks map join name"
                    [:json [:local_bookmarks :map [:|ref| [:name]]]]]
            [:label "remote_bookmarks map join name remote"
                    [:concat
                     "["
                     [:remote_bookmarks
                      :map [:|ref|
                            [:concat "[" [:json [:name]] "," [:json [:remote]] "]"]]
                      :join ","]
                     "]"]]
            [:label "commit_id" [:json [:commit_id]]]
            [:label "author name" [:json [:author :name]]]
            [:label "author email" [:json [:author :email]]]
            [:label "author timestamp format"
                    [:json [:author :timestamp :format "%a %b %e %T %Y %z"]]]
            [:label "committer name" [:json [:committer :name]]]
            [:label "committer email" [:json [:committer :email]]]
            [:label "committer timestamp format"
                    [:json [:committer :timestamp :format "%a %b %e %T %Y %z"]]]
            [:label "description" [:json [:description]]]]
     ,majutsu-diff--revision-metadata-separator]
   'Commit)
  "Template for labelled, unambiguous revision metadata tokens.")