{"thread":{"id":"12036","subject":"[PATCH] git-blame.el: show the when, who and what in the minibuffer.","startedAt":"2008-02-11T15:00:07Z","lastAt":"2008-02-14T02:00:09Z","messageCount":3,"participants":["Junichi Uekawa","David Kågedal","Xavier Maillard"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"68394","messageId":"87ve4vo7g4.dancerj%dancer@netfort.gr.jp","threadId":"12036","inReplyTo":null,"subject":"[PATCH] git-blame.el: show the when, who and what in the minibuffer.","fromName":"Junichi Uekawa","fromEmail":"dancer@netfort.gr.jp","sentAt":"2008-02-11T15:00:07Z","receivedAt":"2008-02-11T15:00:07Z","isPatch":true,"sender":{"key":"dancer@netfort.gr.jp","avatar":null},"body":"Change the default operation to show 'when (day the commit was made),\nwho (who made the commit), what (what the commit log was)' in the\nminibuffer instead of SHA1 and title of the commit log.\n\nSince the user may prefer other displaying options, it is made as a\nuser-configurable option.\n---\n contrib/emacs/git-blame.el |   10 +++++++++-\n 1 files changed, 9 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/emacs/git-blame.el b/contrib/emacs/git-blame.el\nindex bb671d5..99e2b6f 100644\n--- a/contrib/emacs/git-blame.el\n+++ b/contrib/emacs/git-blame.el\n@@ -105,6 +105,13 @@ selected element from l.\"\n      (setq ,l (remove e ,l))\n      e))\n \n+(defvar git-blame-log-oneline-format\n+  \"format:[%cr] %cn: %s\"\n+  \"*Formatting option used for describing current line in the minibuffer.\n+\n+This option is used to pass to git log --pretty= command-line option, \n+and describe which commit the current line was made.\")\n+\n (defvar git-blame-dark-colors\n   (git-blame-color-scale \"0c\" \"04\" \"24\" \"1c\" \"2c\" \"34\" \"14\" \"3c\")\n   \"*List of colors (format #RGB) to use in a dark environment.\n@@ -371,7 +378,8 @@ See also function `git-blame-mode'.\"\n (defun git-describe-commit (hash)\n   (with-temp-buffer\n     (call-process \"git\" nil t nil\n-                  \"log\" \"-1\" \"--pretty=oneline\"\n+                  \"log\" \"-1\" \n+\t\t  (concat \"--pretty=\" git-blame-log-oneline-format)\n                   hash)\n     (buffer-substring (point-min) (1- (point-max)))))\n \n-- \n1.5.3.8\n"},{"id":"68396","messageId":"87ve4vr03u.fsf@lysator.liu.se","threadId":"12036","inReplyTo":"87ve4vo7g4.dancerj%dancer@netfort.gr.jp","subject":"Re: [PATCH] git-blame.el: show the when, who and what in the minibuffer.","fromName":"David Kågedal","fromEmail":"davidk@lysator.liu.se","sentAt":"2008-02-11T15:20:21Z","receivedAt":"2008-02-11T15:20:21Z","isPatch":true,"sender":{"key":"davidk@lysator.liu.se","avatar":"https://avatars.githubusercontent.com/u/60530?v=4"},"body":"Junichi Uekawa <dancer@netfort.gr.jp> writes:\n\n> Change the default operation to show 'when (day the commit was made),\n> who (who made the commit), what (what the commit log was)' in the\n> minibuffer instead of SHA1 and title of the commit log.\n>\n> Since the user may prefer other displaying options, it is made as a\n> user-configurable option.\n\nGood idea.\n\n> ---\n>  contrib/emacs/git-blame.el |   10 +++++++++-\n>  1 files changed, 9 insertions(+), 1 deletions(-)\n>\n> diff --git a/contrib/emacs/git-blame.el b/contrib/emacs/git-blame.el\n> index bb671d5..99e2b6f 100644\n> --- a/contrib/emacs/git-blame.el\n> +++ b/contrib/emacs/git-blame.el\n> @@ -105,6 +105,13 @@ selected element from l.\"\n>       (setq ,l (remove e ,l))\n>       e))\n>  \n> +(defvar git-blame-log-oneline-format\n> +  \"format:[%cr] %cn: %s\"\n> +  \"*Formatting option used for describing current line in the minibuffer.\n> +\n> +This option is used to pass to git log --pretty= command-line option, \n> +and describe which commit the current line was made.\")\n> +\n>  (defvar git-blame-dark-colors\n>    (git-blame-color-scale \"0c\" \"04\" \"24\" \"1c\" \"2c\" \"34\" \"14\" \"3c\")\n>    \"*List of colors (format #RGB) to use in a dark environment.\n> @@ -371,7 +378,8 @@ See also function `git-blame-mode'.\"\n>  (defun git-describe-commit (hash)\n>    (with-temp-buffer\n>      (call-process \"git\" nil t nil\n> -                  \"log\" \"-1\" \"--pretty=oneline\"\n> +                  \"log\" \"-1\" \n> +\t\t  (concat \"--pretty=\" git-blame-log-oneline-format)\n>                    hash)\n>      (buffer-substring (point-min) (1- (point-max)))))\n\n-- \nDavid Kågedal\n"},{"id":"68698","messageId":"200802140200.m1E20996005980@localhost.localdomain","threadId":"12036","inReplyTo":"87ve4vo7g4.dancerj%dancer@netfort.gr.jp","subject":"Re: [PATCH] git-blame.el: show the when, who and what in the minibuffer.","fromName":"Xavier Maillard","fromEmail":"xma@gnu.org","sentAt":"2008-02-14T02:00:09Z","receivedAt":"2008-02-14T02:00:09Z","isPatch":true,"sender":{"key":"xma@gnu.org","avatar":null},"body":"Hi,\n\n   Change the default operation to show 'when (day the commit was made),\n   who (who made the commit), what (what the commit log was)' in the\n   minibuffer instead of SHA1 and title of the commit log.\n\nLove this even more with the user configurable option.\n\n\tXavier\n-- \nhttp://www.gnu.org\nhttp://www.april.org\nhttp://www.lolica.org\n"}]}