Permalink
Browse files

Rename vim-gita -> gita

  • Loading branch information...
1 parent 7c57897 commit b9996e2f1fb059c95d612c27b5c239ce537a7125 @lambdalisue committed Mar 30, 2016
View
@@ -1,4 +1,4 @@
-vim-gita License
+gita License
==============================================================================
The MIT License (MIT)
View
@@ -1,13 +1,13 @@
<div align="center" style="text-align: center">
- <p><img align="center" src="res/vim-gita.256x256.png" alt="vim-gita"></p>
+ <p><img align="center" src="res/gita.256x256.png" alt="gita"></p>
</div>
-[![Travis CI](https://img.shields.io/travis/lambdalisue/vim-gita/master.svg?style=flat-square&label=Travis%20CI)](https://travis-ci.org/lambdalisue/vim-gita) [![AppVeyor](https://img.shields.io/appveyor/ci/lambdalisue/vim-gita/master.svg?style=flat-square&label=AppVeyor)](https://ci.appveyor.com/project/lambdalisue/vim-gita/branch/master) ![Version 0.1.0 &beta;](https://img.shields.io/badge/version-0.1.0--β-yellow.svg?style=flat-square) ![Support Vim 7.4 or above](https://img.shields.io/badge/support-Vim%207.4%20or%20above-yellowgreen.svg?style=flat-square) [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE) [![Doc](https://img.shields.io/badge/doc-%3Ah%20vim--gita-orange.svg?style=flat-square)](doc/vim-gita.txt) [![Powered by vital.vim](https://img.shields.io/badge/powered%20by-vital.vim-80273f.svg?style=flat-square)](https://github.com/vim-jp/vital.vim)
+[![Travis CI](https://img.shields.io/travis/lambdalisue/vim-gita/master.svg?style=flat-square&label=Travis%20CI)](https://travis-ci.org/lambdalisue/vim-gita) [![AppVeyor](https://img.shields.io/appveyor/ci/lambdalisue/vim-gita/master.svg?style=flat-square&label=AppVeyor)](https://ci.appveyor.com/project/lambdalisue/vim-gita/branch/master) ![Version 0.1.0 &beta;](https://img.shields.io/badge/version-0.1.0--β-yellow.svg?style=flat-square) ![Support Vim 7.4 or above](https://img.shields.io/badge/support-Vim%207.4%20or%20above-yellowgreen.svg?style=flat-square) [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE) [![Doc](https://img.shields.io/badge/doc-%3Ah%20gita-orange.svg?style=flat-square)](doc/gita.txt) [![Powered by vital.vim](https://img.shields.io/badge/powered%20by-vital.vim-80273f.svg?style=flat-square)](https://github.com/vim-jp/vital.vim)
-*vim-gita* is a git manipulation plugin which allow users to perform daily git operation within Vim's live session.
+*gita* is a git manipulation plugin which allow users to perform daily git operation within Vim's live session.
-With vim-gita, users can:
+With gita, users can:
- Manipulate the index of the git repository
@@ -31,22 +31,22 @@ With vim-gita, users can:
And lot more.
-vim-gita uses a git repository which
+gita uses a git repository which
- A current file-like buffer belongs
- A current working directory belongs
- An original file of the pseudo file-like buffer belongs
You may notice that this behavior is quite useful when you temporary open a file in a different git repository or in a non file-like buffer such as help or quickfix.
-Additionally, vim-gita aggressively uses cache mechanisms to improve its' performance. You would notice huge performance improvement if you are currently using `system()` to show git repository informations in statusline such as a current branch name or the number of modified files.
+Additionally, gita aggressively uses cache mechanisms to improve its' performance. You would notice huge performance improvement if you are currently using `system()` to show git repository informations in statusline such as a current branch name or the number of modified files.
Install
-------------------------------------------------------------------------------
Use your favorite Vim plugin manager such as [junegunn/vim-plug] or [Shougo/dein.vim] like:
```vim
-" Vundle.vim
+" Plug.vim
Plug 'lambdalisue/vim-gita'
" dein.vim
@@ -60,24 +60,24 @@ call dein#add('lambdalisue/vim-gita', {
Or copy contents of the repository into your runtimepath manually.
-[junegunn/vim-plug.vim]: https://github.com/junegunn/vim-plug
+[junegunn/vim-plug]: https://github.com/junegunn/vim-plug
[Shougo/dein.vim]: https://github.com/Shougo/dein.vim
Usage
-------------------------------------------------------------------------------
-First of all, all commands which vim-gita provides start from `:Gita` and all commands (including `:Gita` itself) provide `-h/-help` option to show a help message of the command.
+First of all, all commands which gita provides start from `:Gita` and all commands (including `:Gita` itself) provide `-h/-help` option to show a help message of the command.
Additionally, hitting `?` in manipulation windows (e.g. `gita-status`) shows action and mapping helps.
-See `:help vim-gita-usage` for more detail.
+See `:help gita-usage` for more detail.
Bundle libraries and build statuses
-------------------------------------------------------------------------------
-vim-gita rely on the following bundled libraries. (Note: users don't need to install them while these are bundled.)
+gita rely on the following bundled libraries. (Note: users don't need to install them while these are bundled.)
Status | Name | Description
---------|---------|--------------
View
@@ -6,7 +6,7 @@ function! gita#vital() abort
endfunction
function! gita#throw(msg) abort
- throw 'vim-gita: ' . a:msg
+ throw 'gita: ' . a:msg
endfunction
function! gita#define_variables(prefix, defaults) abort
@@ -127,7 +127,7 @@ function! gita#action#smart_map(lhs, rhs) abort range
try
let candidates = gita#action#get_candidates(a:firstline, a:lastline)
return empty(candidates) ? a:lhs : a:rhs
- catch /^\%(vital: Git[:.]\|vim-gita:\)/
+ catch /^\%(vital: Git[:.]\|gita:\)/
call gita#util#handle_exception()
return a:lhs
endtry
@@ -104,7 +104,7 @@ function! gita#command#command(bang, range, args) abort
\ 'gita#meta#expand(v:val)',
\))
call gita#util#doautocmd('User', 'GitaStatusModified')
- catch /^\%(vital: Git[:.]\|vim-gita:\)/
+ catch /^\%(vital: Git[:.]\|gita:\)/
call gita#util#handle_exception()
endtry
endif
@@ -133,7 +133,7 @@ function! gita#command#complete(arglead, cmdline, cursorpos) abort
endif
" complete filename
return gita#util#complete#filename(a:arglead, cmdline, a:cursorpos)
- catch /^\%(vital: Git[:.]\|vim-gita:\)/
+ catch /^\%(vital: Git[:.]\|gita:\)/
" fail silently
call s:Prompt.debug(v:exception)
call s:Prompt.debug(v:throwpoint)
@@ -93,7 +93,7 @@ function! gita#content#autocmd(name) abort
\ '"%s" in "%s" is not supported',
\ a:name, expand('<afile>'),
\))
- catch /^\%(vital: Git[:.]\|vim-gita:\)/
+ catch /^\%(vital: Git[:.]\|gita:\)/
call gita#util#handle_exception()
endtry
endfunction
@@ -227,7 +227,7 @@ function! s:on_WinLeave() abort
unlet w:_gita_commit_QuitPre
try
call s:commit_commitmsg_confirm()
- catch /^\%(vital: Git[:.]\|vim-gita:\)/
+ catch /^\%(vital: Git[:.]\|gita:\)/
call gita#util#handle_exception()
endtry
endif
@@ -205,7 +205,7 @@ function! s:on_BufWriteCmd(options) abort
setlocal nomodified
call gita#util#doautocmd('User', 'GitaStatusModified')
call gita#util#doautocmd('BufWritePost')
- catch /^\%(vital: Git[:.]\|vim-gita:\)/
+ catch /^\%(vital: Git[:.]\|gita:\)/
call gita#util#handle_exception()
endtry
endfunction
@@ -230,7 +230,7 @@ function! s:on_BufWriteCmd(options) abort
call gita#util#doautocmd('User', 'GitaStatusModified')
call gita#util#doautocmd('BufWritePost')
diffupdate
- catch /^\%(vital: Git[:.]\|vim-gita:\)/
+ catch /^\%(vital: Git[:.]\|gita:\)/
call gita#util#handle_exception()
finally
call delete(tempfile)
@@ -204,14 +204,14 @@ function! gita#statusline#format(format) abort
let text = gita#util#formatter#format(a:format, s:format_map, info)
call format_cache.set(a:format, text)
return text
- catch /^\%(vital: Git[:.]\|vim-gita:\)/
+ catch /^\%(vital: Git[:.]\|gita:\)/
return ''
endtry
endfunction
function! gita#statusline#preset(name) abort
if !has_key(s:preset, a:name)
call s:Prompt.error(printf(
- \ 'vim-gita: statusline: A preset "%s" is not found.',
+ \ 'gita: statusline: A preset "%s" is not found.',
\ a:name,
\))
return ''
@@ -101,9 +101,8 @@ endfunction
function! gita#util#handle_exception() abort
let known_attention_patterns = [
- \ '^\%(vital: Git[:.]\|vim-gita:\) Cancel$',
- \ '^\%(vital: Git[:.]\|vim-gita:\) Cancel: ',
- \ '^\%(vital: Git[:.]\|vim-gita:\) Attention: ',
+ \ '^\%(vital: Git[:.]\|gita:\) Cancel: ',
+ \ '^\%(vital: Git[:.]\|gita:\) Attention: ',
\]
for pattern in known_attention_patterns
if v:exception =~# pattern
@@ -115,8 +114,8 @@ function! gita#util#handle_exception() abort
endif
endfor
let known_warning_patterns = [
- \ '^\%(vital: Git[:.]\|vim-gita:\) \zeWarning: ',
- \ '^\%(vital: Git[:.]\|vim-gita:\) \zeValidationError: ',
+ \ '^\%(vital: Git[:.]\|gita:\) \zeWarning: ',
+ \ '^\%(vital: Git[:.]\|gita:\) \zeValidationError: ',
\]
for pattern in known_warning_patterns
if v:exception =~# pattern
@@ -75,7 +75,7 @@ function! s:_split_commitish(commitish, options) abort
let [commit, misc] = matchlist(a:commitish, '\(.\{-}\)\(\^{.*}\)$')[1 : 2]
elseif a:commitish =~# ':/.*$'
" NOTE:
- " Due to the bufname rule of vim-gita, it had not better to allow this type
+ " Due to the bufname rule of gita, it had not better to allow this type
" of commitish assignment.
let [commit, misc] = matchlist(a:commitish, '\(.\{-}\)\(:/.*\)$')[1 : 2]
else
Oops, something went wrong.

0 comments on commit b9996e2

Please sign in to comment.