Add GitRoot command
This commit is contained in:
parent
5dd8daf460
commit
5e150d5b81
1 changed files with 1 additions and 0 deletions
1
vimrc
1
vimrc
|
@ -518,6 +518,7 @@ command! GitLast call <sid>git_last() | call s:git_info()
|
|||
command! GitInfo call <sid>git_info()
|
||||
command! -nargs=1 GitCheckout call <sid>file_at_revision(<f-args>)
|
||||
command! -nargs=? GitCompare call <sid>git_diff(<f-args>)
|
||||
command! GitRoot exec 'cd '.system('git rev-parse --show-toplevel')
|
||||
|
||||
" === FILE STUFF ===
|
||||
|
||||
|
|
Loading…
Reference in a new issue