mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-28 11:26:51 +08:00
* Make git operation faster When using many plugins, vim-plug may spawn many git processes for them. * get revision * get branch * get remote.origin.url This is too heavy. especially on Windows. This change get revision, branch, remote origin url directly from .git directory. This idea is borrowed from @k-takata's commit for minpac. Executing external programs is slow especially on Windows. Read the information directly from .git directory. * Copied from devel branch of minpac * Avoid errors * Show errors * Use empty() * Use empty string instead of v:null * Check spec.branch is empty * Use branch * Fix branch and revision * Remove l: and use s:trim * Fix and simplify s:git_get_remote_origin_url * Do not cut off commit hash for correctness Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
80 KiB
80 KiB