Variable: majutsu-annotate--template

majutsu-annotate--template is a variable defined in majutsu-annotate.el.

Value

"separate(\"\\t\",  commit.change_id().short(12),  commit.parents().map(|p| p.change_id().short(12)).join(\",\"),  truncate_end(20, commit.author().name()),  commit_timestamp(commit).local().format(\"%Y-%m-%d %H:%M:%S\"),  line_number,  original_line_number,  first_line_in_hunk,  commit.description().first_line(),) ++ \"\\n\""

Documentation

Template for jj file annotate output.

Produces tab-separated fields:
  0: change-id (12 chars)
  1: parent change-ids (comma-separated)
  2: author (truncated to 20 chars)
  3: timestamp
  4: line number
  5: original line number
  6: first-line-in-hunk (true/false)
  7: description first line

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-annotate.el
;;; Template for structured parsing

(defconst majutsu-annotate--template
  (concat
   "separate(\"\\t\","
   "  commit.change_id().short(12),"
   "  commit.parents().map(|p| p.change_id().short(12)).join(\",\"),"
   "  truncate_end(20, commit.author().name()),"
   "  commit_timestamp(commit).local().format(\"%Y-%m-%d %H:%M:%S\"),"
   "  line_number,"
   "  original_line_number,"
   "  first_line_in_hunk,"
   "  commit.description().first_line(),"
   ") ++ \"\\n\"")
  "Template for jj file annotate output.
Produces tab-separated fields:
  0: change-id (12 chars)
  1: parent change-ids (comma-separated)
  2: author (truncated to 20 chars)
  3: timestamp
  4: line number
  5: original line number
  6: first-line-in-hunk (true/false)
  7: description first line")