aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/git_todo.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/git_todo.vim')
-rw-r--r--autoload/git_todo.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/autoload/git_todo.vim b/autoload/git_todo.vim
new file mode 100644
index 0000000..ca57921
--- /dev/null
+++ b/autoload/git_todo.vim
@@ -0,0 +1,9 @@
+function! git_todo#QuickfixTodos(ref)
+ let ref = a:ref
+
+ if empty(ref)
+ let ref = get(g:, 'git_todo_default_ref', '')
+ endif
+
+ cexpr system('git todo ' . ref)
+endfunction