diff options
author | Gustav Hållberg <gustav@gmail.com> | 2010-04-07 16:29:47 +0200 |
---|---|---|
committer | Gustav Hållberg <gustav@gmail.com> | 2010-04-30 00:21:46 +0200 |
commit | bc11fb0841e6d41ea7471d8c0f526b111b06b2ef (patch) | |
tree | 7409ddcb5c2330d12b0df14b8376fc9d6758dcef | |
parent | d2efc9d501ce5a89562af1d8a788794befb5d59a (diff) | |
download | stgit-bc11fb0841e6d41ea7471d8c0f526b111b06b2ef.tar.gz |
stgit.el: Add stgit-default-show-{ignored,unknown}
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
-rw-r--r-- | contrib/stgit.el | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/contrib/stgit.el b/contrib/stgit.el index 8e41a9a..dd3c92b 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -44,12 +44,30 @@ instead of \"dir/old/file -> dir/new/file\"." (defcustom stgit-default-show-worktree t "Set to non-nil to by default show the working tree in a new stgit buffer. -Use \\<stgit-mode-map>\\[stgit-toggle-worktree] to toggle the -this setting in an already-started StGit buffer." +Use \\<stgit-mode-map>\\[stgit-toggle-worktree] to toggle this \ +setting in an already-started StGit buffer." :type 'boolean :group 'stgit :link '(variable-link stgit-show-worktree)) +(defcustom stgit-default-show-unknown nil + "Set to non-nil to by default show unknown files a new stgit buffer. + +Use \\<stgit-mode-map>\\[stgit-toggle-unknown] to toggle this \ +setting in an already-started StGit buffer." + :type 'boolean + :group 'stgit + :link '(variable-link stgit-show-unknown)) + +(defcustom stgit-default-show-ignored nil + "Set to non-nil to by default show ignored files a new stgit buffer. + +Use \\<stgit-mode-map>\\[stgit-toggle-ignored] to toggle this \ +setting in an already-started StGit buffer." + :type 'boolean + :group 'stgit + :link '(variable-link stgit-show-ignored)) + (defcustom stgit-find-copies-harder nil "Try harder to find copied files when listing patches. @@ -1229,7 +1247,9 @@ Commands for branches: Customization variables: `stgit-abbreviate-copies-and-renames' +`stgit-default-show-ignored' `stgit-default-show-patch-names' +`stgit-default-show-unknown' `stgit-default-show-worktree' `stgit-find-copies-harder' `stgit-show-worktree-mode' @@ -1247,8 +1267,8 @@ See also \\[customize-group] for the \"stgit\" group." (set (make-local-variable 'stgit-show-patch-names) stgit-default-show-patch-names) (set (make-local-variable 'stgit-show-worktree) stgit-default-show-worktree) - (set (make-local-variable 'stgit-show-ignored) nil) - (set (make-local-variable 'stgit-show-unknown) nil) + (set (make-local-variable 'stgit-show-ignored) stgit-default-show-ignored) + (set (make-local-variable 'stgit-show-unknown) stgit-default-show-unknown) (set (make-local-variable 'stgit-index-node) nil) (set (make-local-variable 'stgit-worktree-node) nil) (set (make-local-variable 'parse-sexp-lookup-properties) t) @@ -2381,6 +2401,8 @@ work tree will show up." "Toggle the visibility of files ignored by git in the work tree. With ARG, show these files if ARG is positive. +Its initial setting is controlled by `stgit-default-show-ignored'. + Use \\[stgit-toggle-worktree] to show the work tree." (interactive) (stgit-assert-mode) @@ -2394,6 +2416,8 @@ Use \\[stgit-toggle-worktree] to show the work tree." "Toggle the visibility of files not registered with git in the work tree. With ARG, show these files if ARG is positive. +Its initial setting is controlled by `stgit-default-show-unknown'. + Use \\[stgit-toggle-worktree] to show the work tree." (interactive) (stgit-assert-mode) |