aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--autoload/git_todo.vim9
-rw-r--r--plugin/git_todo.vim7
2 files changed, 16 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
diff --git a/plugin/git_todo.vim b/plugin/git_todo.vim
new file mode 100644
index 0000000..6f5d283
--- /dev/null
+++ b/plugin/git_todo.vim
@@ -0,0 +1,7 @@
+if exists('g:loaded_git_todo')
+ finish
+endif
+let g:loaded_git_todo = 1
+
+
+command! -nargs=? GitTodo call git_todo#QuickfixTodos(<q-args>)