kana / vim-flavor

Taste the difference.
https://www.relishapp.com/kana/vim-flavor
MIT License
112 stars 11 forks source link

Refetch cahed repositories properly before "install" #23

Closed kana closed 11 years ago

kana commented 11 years ago
  1. Run vim-flavor install from scratch on machine A.
  2. Run vim-flavor install from scratch on machine B.
  3. New versions of plugin P are released.
  4. Rerun vim-flavor install on machine A.
  5. Copy VimFlavor.lock from A to B.
  6. Rerun vim-flavor install on machine B... ==> error: pathspec '$new_version' did not match any file(s) known to git. (RuntimeError)

So that it's necessary to git fetch before installing each plugin. But git fetch is a time-consuming task even if there is no update. Therefore it would be better to avoid git fetch as much as possible.

kana commented 11 years ago

For example...

$ vim-flavor upgrade
...

$ time vim-flavor upgrade
...
vim-flavor upgrade  1.55s user 7.32s system 23% cpu 38.486 total

$ time vim-flavor install
...
vim-flavor install  0.47s user 0.18s system 141% cpu 0.460 total