R's Workshop

Vim-Plug Plugin Management

從 Vundle 改用 vim-plug 的主因是, vim-plug 支援 on-demand plugin loading. 並且可以根據 filetype 來決定要載入哪些 plugins. Read more

Plumbing Commands to Imitate Git Worktree Add

git worktree 的出現成功取代了 git stash 的功能 (處理臨時出現問題時, 開一個 linked working directory 就好). git worktree 也可以讓使用者免於同時 clone 好幾份相同的 project 在單一電腦上, 以及免除在不同 cloned project 間 cherry-pick 的麻煩. 不過 git worktree add... Read more

Git Update a Tag

若要 update 一個已經建立的 tag, 需要透過 git tag -f 指令更新 Read more

Git Tag a Blob Object

前幾天在這篇文章中看到 git 可以 tag blob/tree objects. 紀錄一下要如何 tag 一個 blob object. Read more

Git Commit Graph for Faster Visualized Log Display

在開大型 git project (e.g. linux) 的 log 時, 常會花上幾秒鐘的時間讀取. 原因是 git 需要重複做以下動作: 讀取 commit 的 content –> 找到 parent commit –> 讀取 parent commit 的 content –> (loop). 為了加速 log 的讀取, git 提供了 git commit-gr... Read more