Browse files

rename magit-insert-{ => topgit-}topics

Looking at the name should be enough to know this is from an extension.
Also rename the name of the section from just `topics' to `stgit-topics'.
  • Loading branch information...
1 parent 0b6f8cf commit f47900b6d1f0414d73bf8b5e30513a3c443f919b @tarsius tarsius committed Sep 22, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 magit-topgit.el
@@ -134,8 +134,8 @@
(magit-git-standard-options nil))
(apply 'magit-git-section section title washer args))))
-(magit-define-inserter topics ()
- (magit-topgit-section 'topics
+(magit-define-inserter topgit-topics ()
+ (magit-topgit-section 'topgit-topics
"Topics:" 'magit-topgit-wash-topics
@@ -166,7 +166,7 @@
(error "This mode only makes sense with magit"))
- (add-hook 'magit-after-insert-stashes-hook 'magit-insert-topics nil t)
+ (add-hook 'magit-after-insert-stashes-hook 'magit-insert-topgit-topics nil t)
(add-hook 'magit-create-branch-command-hook 'magit-topgit-create-branch nil t)
(add-hook 'magit-pull-command-hook 'magit-topgit-pull nil t)
(add-hook 'magit-remote-update-command-hook 'magit-topgit-remote-update nil t)
@@ -176,7 +176,7 @@
;; hide refs in the top-bases namespace, as they're not meant for the user
(add-to-list 'magit-refs-namespaces magit-topgit-ignored-namespace))
- (remove-hook 'magit-after-insert-stashes-hook 'magit-insert-topics t)
+ (remove-hook 'magit-after-insert-stashes-hook 'magit-insert-topgit-topics t)
(remove-hook 'magit-create-branch-command-hook 'magit-topgit-create-branch t)
(remove-hook 'magit-pull-command-hook 'magit-topgit-pull t)
(remove-hook 'magit-remote-update-command-hook 'magit-topgit-remote-update t)

0 comments on commit f47900b

Please sign in to comment.