Skip to content

Commit

Permalink
Add submodule info in debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rabatone Oliveira committed May 29, 2020
1 parent b6c2a3f commit 2da50da
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion autoload/pymode/debug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fun! pymode#debug#sysinfo() "{{{
echom pymodevar
endfor
" }}}
" Github commit info. {{{
" Git commit info. {{{
" Find in the scriptnames the first occurence of 'python-mode'. Then parse
" the result outputting its path. This is in turn fed into the git command.
call pymode#debug("Git commit: ")
Expand All @@ -44,6 +44,13 @@ fun! pymode#debug#sysinfo() "{{{
let l:git_head_sha1 = system('git -C ' . expand(l:pymode_folder). ' rev-parse HEAD ' )
echom join(filter(split(l:git_head_sha1, '\zs'), 'v:val =~? "[0-9A-Fa-f]"'), '')
" }}}
" Git submodules status. {{{
call pymode#debug("Git submodule status:")
let l:git_submodule_status = system('git -C ' . expand(l:pymode_folder). ' submodule status')
for submodule in split(l:git_submodule_status, '\n')
echom submodule
endfor
" }}}
call pymode#debug("End of pymode#debug#sysinfo")
endfunction "}}}

Expand Down

0 comments on commit 2da50da

Please sign in to comment.