From 96f4a41ccb9dab64bfc9a671a09af31545dcc663 Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Wed, 15 May 2013 11:44:37 -0700 Subject: [PATCH] [commit-patch-buffer] Add conventional headers for emacs libraries. IE. Section D.8 of the elisp manual. Thanks to Jonas Bernoulli for the push. --- commit-patch-buffer.el | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/commit-patch-buffer.el b/commit-patch-buffer.el index 87f4293..908de65 100644 --- a/commit-patch-buffer.el +++ b/commit-patch-buffer.el @@ -1,7 +1,31 @@ +;;; commit-patch-buffer.el --- commit patches to Darcs, Git, Mercurial, Bazaar, Monotone, Subversion, or CVS repositories + ;; Copyright 2003-2013 Jim Radford ;; and David Caldwell , All Rights Reserved. ;; This code can be distributed under the terms of the GNU Public License (Version 2 or greater). +;; ;; Version: 2.1 +;; +;; Author: Jim Radford +;; David Caldwell + +;;; Commentary: + +;; commit-patch-buffer provides an Emacs front end to the commit-patch(1) +;; program. Typically the patch to commit would be obtained with vc-diff +;; ("C-c v ="), though any Emacs diff-mode buffer can be committed. +;; +;; Typing "C-c C-c" in a diff-mode buffer kicks off the process and brings +;; up a buffer for the commit comment. After entering a suitable comment, +;; type "C-c C-c" again to finish the commit. If commit-patch-buffer cannot +;; automatically detect the repository directory, it will ask for it +;; interactively. +;; +;; commit-patch-buffer-in-directory is also available: this function skips +;; the automagical repository detection logic if the user wants to directly +;; specify the buffer to commit and directory. + +;;; Code: (require 'vc) (require 'log-edit) @@ -96,3 +120,5 @@ following algorithm: (define-key diff-mode-map "\C-xvv" 'commit-patch-buffer))) (provide 'commit-patch-buffer) + +;;; commit-patch-buffer.el ends here -- 2.51.2