{"thread":{"id":"6745","subject":"[PATCH 1/7] git-blame: Add Emacs Lisp file headers and GNU GPL boilerplate","startedAt":"2007-02-09T08:19:28Z","lastAt":"2007-02-09T08:19:28Z","messageCount":1,"participants":["David Kågedal"],"isPatch":true,"patchVersion":1,"patchTotal":7},"messages":[{"id":"34040","messageId":"874ppvrbe7.fsf@morpheus.local","threadId":"6745","inReplyTo":null,"subject":"[PATCH 1/7] git-blame: Add Emacs Lisp file headers and GNU GPL boilerplate","fromName":"David Kågedal","fromEmail":"davidk@lysator.liu.se","sentAt":"2007-02-09T08:19:28Z","receivedAt":"2007-02-09T08:19:28Z","isPatch":true,"sender":{"key":"davidk@lysator.liu.se","avatar":"https://avatars.githubusercontent.com/u/60530?v=4"},"body":"From: Jakub Narebski <jnareb@gmail.com>\n\nAdd Emacs Lisp file headers, according to \"Coding Conventions\" chapter\nin Emacs Lisp Reference Manual and Elisp Area Convetions for\nEmacsWiki:\n  http://www.emacswiki.org/cgi-bin/wiki/ElispAreaConventions\nThose include: copyright notice, GNU GPL boilerplate, description and\ninstalation instructions as provided in email and in commit message\nintroducing git-blame.el, compatibility notes from another email by\nDavid Kågedal about what to change to use it in GNU Emacs 20, and\n\"git-blame ends here\" to detect if file was truncated.  First line\nincludes setting file encoding via first line local variable values\n(file variables).\n\nAdded comment to \"(require 'cl)\" to note why it is needed; \"Coding\nConventions\" advises to avoid require the `cl' package of Common Lisp\nextensions at run time.\n\nSigned-off-by: Jakub Narebski <jnareb@gmail.com>\n---\n contrib/emacs/git-blame.el |   75 ++++++++++++++++++++++++++++++++++++++++++--\n 1 files changed, 72 insertions(+), 3 deletions(-)\n\ndiff --git a/contrib/emacs/git-blame.el b/contrib/emacs/git-blame.el\nindex 62cf24c..ba9d8a6 100644\n--- a/contrib/emacs/git-blame.el\n+++ b/contrib/emacs/git-blame.el\n@@ -1,8 +1,73 @@\n-;;; git-blame.el\n-;; David Kågedal <davidk@lysator.liu.se>\n+;;; git-blame.el --- Minor mode for incremental blame for Git  -*- coding: utf-8 -*-\n+;;\n+;; Copyright (C) 2007  David Kågedal\n+;;\n+;; Authors:    David Kågedal <davidk@lysator.liu.se>\n+;; Created:    31 Jan 2007\n ;; Message-ID: <87iren2vqx.fsf@morpheus.local>\n+;; License:    GPL\n+;; Keywords:   git, version control, release management\n+;;\n+;; Compatibility: Emacs21\n+\n+\n+;; This file is *NOT* part of GNU Emacs.\n+;; This file is distributed under the same terms as GNU Emacs.\n+\n+;; This program is free software; you can redistribute it and/or\n+;; modify it under the terms of the GNU General Public License as\n+;; published by the Free Software Foundation; either version 2 of\n+;; the License, or (at your option) any later version.\n+\n+;; This program is distributed in the hope that it will be\n+;; useful, but WITHOUT ANY WARRANTY; without even the implied\n+;; warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n+;; PURPOSE.  See the GNU General Public License for more details.\n+\n+;; You should have received a copy of the GNU General Public\n+;; License along with this program; if not, write to the Free\n+;; Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,\n+;; MA 02111-1307 USA\n+\n+;; http://www.fsf.org/copyleft/gpl.html\n+\n+\n+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n+;;\n+;;; Commentary:\n+;;\n+;; Here is an Emacs implementation of incremental git-blame.  When you\n+;; turn it on while viewing a file, the editor buffer will be updated by\n+;; setting the background of individual lines to a color that reflects\n+;; which commit it comes from.  And when you move around the buffer, a\n+;; one-line summary will be shown in the echo area.\n+\n+;;; Installation:\n+;;\n+;;  1) Load into emacs: M-x load-file RET git-blame.el RET\n+;;  2) Open a git-controlled file\n+;;  3) Blame: M-x git-blame-mode\n+\n+;;; Compatibility:\n+;;\n+;; It requires GNU Emacs 21.  If you'are using Emacs 20, try\n+;; changing this:\n+;;\n+;;            (overlay-put ovl 'face (list :background\n+;;                                         (cdr (assq 'color (cddddr info)))))\n+;;\n+;; to\n+;;\n+;;            (overlay-put ovl 'face (cons 'background-color\n+;;                                         (cdr (assq 'color (cddddr info)))))\n+\n+\n+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n+;;\n+;;; Code:\n+\n+(require 'cl)\t\t\t      ; to use `push', `pop'\n \n-(require 'cl)\n (defun color-scale (l)\n   (let* ((colors ())\n          r g b)\n@@ -178,3 +243,7 @@\n   (shell-command\n    (format \"git log -1 --pretty=oneline %s\" (or hash\n                                                 (git-blame-current-commit)))))\n+\n+(provide 'git-blame)\n+\n+;;; git-blame.el ends here\n-- \n1.5.0.rc3.204.g93c76\n\n\n-- \nDavid Kågedal\n"}]}