radian-software / straight.el

🍀 Next-generation, purely functional package manager for the Emacs hacker.
MIT License
2.71k stars 150 forks source link

Update all git repos managed by straight.el. #796

Closed hongyi-zhao closed 3 years ago

hongyi-zhao commented 3 years ago

Currently, I've the following packages installed, hence managed by straight.el:

$ find ~/.emacs.d/straight/repos -maxdepth 1 -mindepth 1 -type d | xargs -I{} git -C {} config remote.origin.url 
https://github.com/magit/with-editor.git
https://github.com/emacs-straight/emacsmirror-mirror.git
https://github.com/abo-abo/hydra.git
https://github.com/auto-complete/popup-el.git
https://github.com/sebastiencs/frame-local.git
https://github.com/rejeep/f.el.git
https://github.com/sebastiencs/company-box.git
https://github.com/dimitri/el-get.git
https://github.com/Wilfred/loop.el.git
https://github.com/polymode/polymode.git
https://github.com/jethrokuan/mathpix.el.git
https://git.savannah.gnu.org/git/auctex.git
https://github.com/tkf/emacs-request.git
https://github.com/cask/epl.git
https://github.com/rranelli/auto-package-update.el.git
https://github.com/magnars/dash.el.git
https://github.com/DogLooksGood/emacs-rime.git
https://github.com/tumashu/posframe.git
https://github.com/rolandwalker/anaphora.git
https://github.com/flycheck/flycheck.git
https://github.com/plexus/a.el.git
https://github.com/ahyatt/emacs-websocket.git
https://github.com/melpa/melpa.git
https://github.com/raxod502/straight.el.git
https://github.com/magnars/s.el.git
https://github.com/Fuco1/smartparens.git
https://github.com/Wilfred/ht.el.git
https://github.com/jrblevin/markdown-mode.git
https://github.com/emacs-straight/let-alist.git
https://github.com/company-mode/company-mode.git
https://github.com/abo-abo/swiper.git
https://github.com/jwiegley/use-package.git
https://github.com/millejoh/emacs-ipython-notebook.git
https://github.com/emacs-lsp/lsp-mode.git
https://github.com/emacs-straight/spinner.git
https://github.com/manateelazycat/multi-term.git
https://github.com/kiwanami/emacs-deferred.git
https://github.com/emacsorphanage/pkg-info.git
https://github.com/emacs-straight/gnu-elpa-mirror.git
https://github.com/emacs-straight/valign.git

Though I can write a shell script to update all these git repos, but I don't think this is an Emacser's way. If straight.el in itself has this feature, then so much the better.

Any hints will be highly appreciated.

Regards, HY

progfolio commented 3 years ago

See:

https://github.com/raxod502/straight.el#version-control-operations

hongyi-zhao commented 3 years ago

Thank you. So the following will do the trick:

M-x straight-pull-all: combination of M-x straight-fetch-all and M-x straight-merge-all

progfolio commented 3 years ago

Yes, that's correct.