Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin/magit.vim: suppress more 'line added' messages #56

Merged
merged 1 commit into from
Dec 18, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions plugin/magit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function! s:mg_display_files(mode, curdir, depth)
if ( file.depth != a:depth || filename !~ a:curdir . '.*' )
continue
endif
put =file.get_filename_header()
silent put =file.get_filename_header()

if ( file.dir != 0 )
if ( file.visible == 1 )
Expand All @@ -155,7 +155,7 @@ function! s:mg_display_files(mode, curdir, depth)
endif

if ( file.visible == 0 )
put =''
silent put =''
continue
endif
if ( file.exists == 0 )
Expand All @@ -170,7 +170,7 @@ function! s:mg_display_files(mode, curdir, depth)
silent put =hunk.lines
endif
endfor
put =''
silent put =''
endfor
endfunction

Expand All @@ -180,11 +180,11 @@ endfunction
" protected functions like magit#update_buffer
" param[in] mode: 'staged' or 'unstaged'
function! s:mg_get_staged_section(mode)
put =''
put =g:magit_sections[a:mode]
silent put =''
silent put =g:magit_sections[a:mode]
call <SID>mg_section_help(a:mode)
put =magit#utils#underline(g:magit_sections[a:mode])
put =''
silent put =magit#utils#underline(g:magit_sections[a:mode])
silent put =''
call s:mg_display_files(a:mode, '', 0)
endfunction

Expand All @@ -205,7 +205,7 @@ function! s:mg_get_stashes()

for stash in stash_list
let stash_id=substitute(stash, '^\(stash@{\d\+}\):.*$', '\1', '')
put =stash
silent put =stash
silent! execute "read !git stash show -p " . stash_id
endfor
endif
Expand Down Expand Up @@ -237,9 +237,9 @@ function! s:mg_get_commit_section()
if ( filereadable(git_dir . 'COMMIT_EDITMSG') )
let comment_char=<SID>mg_comment_char()
let commit_msg=magit#utils#join_list(filter(readfile(git_dir . 'COMMIT_EDITMSG'), 'v:val !~ "^' . comment_char . '"'))
put =commit_msg
silent put =commit_msg
endif
put =g:magit_sections.commit_end
silent put =g:magit_sections.commit_end
endif
endfunction

Expand Down