dotfiles

<-- duh.
git clone https://hhvn.uk/dotfiles
git clone git://hhvn.uk/dotfiles
Log | Files | Refs | Submodules | LICENSE

magit_common.vim (1593B)


      1 " Section names
      2 " These are used to beautify the magit buffer and to help for some block
      3 " selection
      4 let g:magit_sections = {
      5  \ 'info':           'Info',
      6  \ 'help':           'Help',
      7  \ 'staged':         'Staged changes',
      8  \ 'unstaged':       'Unstaged changes',
      9  \ 'commit':         'Commit message',
     10  \ 'stash':          'Stash list'
     11  \ }
     12 
     13 let g:magit_section_info = {
     14  \ 'cur_repo':       'Repository:',
     15  \ 'cur_head':       'Head:',
     16  \ 'cur_upstream':   'Upstream:',
     17  \ 'cur_push':       'Push:',
     18  \ 'commit_mode':    'Commit mode:',
     19  \ }
     20 
     21 let g:magit_git_status_code = {
     22  \ 'M': 'modified', 
     23  \ 'A': 'added',
     24  \ 'D': 'deleted',
     25  \ 'R': 'renamed',
     26  \ 'T': 'typechanged',
     27  \ 'C': 'copied',
     28  \ 'U': 'updated but unmerged',
     29  \ '?': 'untracked',
     30  \ '!': 'ignored',
     31  \ 'E': 'empty',
     32  \ 'L': 'symlink',
     33  \ 'N': 'new dir',
     34  \ 'S': 'submodule',
     35  \ }
     36 
     37 let g:magit_commit_mode = {
     38  \ 'CC': 'normal',
     39  \ 'CA': 'amend',
     40  \ }
     41 
     42 " Regular expressions used to select blocks
     43 let g:magit_file_re  = '^\('
     44 for status_code in values(g:magit_git_status_code)
     45 	let g:magit_file_re .= status_code . '\|'
     46 endfor
     47 let g:magit_file_re .= 'unknown status\): \(.\{-\}\)\%( -> .*\)\?$'
     48 
     49 let g:magit_section_re  = '^\('
     50 for section_name in values(g:magit_sections)
     51 	let g:magit_section_re .= section_name . '\|'
     52 endfor
     53 let g:magit_section_re .= 'unknown section\)$'
     54 
     55 let g:magit_diff_re  = '^diff --git'
     56 let g:magit_end_diff_re  = '^$'
     57 let g:magit_stash_re = '^stash@{\d\+}:'
     58 let g:magit_hunk_re  = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@'
     59 let g:magit_bin_re   = '^Binary files '
     60 let g:magit_eof_re   = '\%$'
     61 
     62