From a2d08222c6ffecf2e4b91da321fadf7ac9445d43 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Sun, 1 Mar 2009 21:35:44 +0200 Subject: [PATCH] Make standard options customizable. * magit.el (magit-git-standard-options): Here, by using defcustom. --- NEWS | 7 ++++--- magit.el | 7 +++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 44a039a0..fa3427b7 100644 --- a/NEWS +++ b/NEWS @@ -34,17 +34,18 @@ Changes in magit 0.7: * Magit understands a bit of git-svn: the status buffer shows unpushed and unpulled commits, 'N r' runs git svn rebase, and 'N c' runs git - svn commit. + svn dcommit. * Magit now also works when the direcory is accessed via tramp. * M-x magit-status can also create new repositories when given a directory that is not a Git repository. -* Magit works better with oldish Gits that don't understand "--graph" +* Magit works better with oldish Gits that don't understand "--graph", for example. -* The name of the Git program can be customized. +* The name of the Git program and common options for it can be + customized. Changes in magit 0.6: diff --git a/magit.el b/magit.el index adc531a7..12deacfa 100644 --- a/magit.el +++ b/magit.el @@ -66,6 +66,11 @@ :group 'magit :type 'string) +(defcustom magit-git-standard-options '("--no-pager") + "Standard options when running Git." + :group 'magit + :type '(repeat string)) + (defcustom magit-save-some-buffers t "Non-nil means that \\[magit-status] will save modified buffers before running. Setting this to t will ask which buffers to save, setting it to 'dontask will @@ -186,8 +191,6 @@ Many Magit faces inherit from this one by default." "Face for branch head labels shown in log buffer." :group 'magit) -(defconst magit-git-standard-options '("--no-pager")) - ;;; Macros (defmacro magit-with-refresh (&rest body)