Skip to content

Commit 2da50da

Browse files
author
Diego Rabatone Oliveira
committed
Add submodule info in debug messages
1 parent b6c2a3f commit 2da50da

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

autoload/pymode/debug.vim

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fun! pymode#debug#sysinfo() "{{{
3030
echom pymodevar
3131
endfor
3232
" }}}
33-
" Github commit info. {{{
33+
" Git commit info. {{{
3434
" Find in the scriptnames the first occurence of 'python-mode'. Then parse
3535
" the result outputting its path. This is in turn fed into the git command.
3636
call pymode#debug("Git commit: ")
@@ -44,6 +44,13 @@ fun! pymode#debug#sysinfo() "{{{
4444
let l:git_head_sha1 = system('git -C ' . expand(l:pymode_folder). ' rev-parse HEAD ' )
4545
echom join(filter(split(l:git_head_sha1, '\zs'), 'v:val =~? "[0-9A-Fa-f]"'), '')
4646
" }}}
47+
" Git submodules status. {{{
48+
call pymode#debug("Git submodule status:")
49+
let l:git_submodule_status = system('git -C ' . expand(l:pymode_folder). ' submodule status')
50+
for submodule in split(l:git_submodule_status, '\n')
51+
echom submodule
52+
endfor
53+
" }}}
4754
call pymode#debug("End of pymode#debug#sysinfo")
4855
endfunction "}}}
4956

0 commit comments

Comments
 (0)