Dec 20, 2007

一個好用的 Patch 管理工具 - quilt

先在目錄下 mkdir patches
  1. quilt new patchname #新增一個patch file
  2. quilt add filename #把要修改的 file 加入 top most patch 中,也可使用 quilt [vi] edit filename ,這樣就會幫你自動先 add 就直接建入 editor
  3. quilt refresh #updata your patch
  4. quilt remove filepath #把 此 file 的更改移出此patch
  5. quilt delete patchname #remove unapplied patch
  6. quilt push #將下一個patch file apply進來,或是全部的apply [-a]
  7. quilt pop #unpapply回上一個 patch,或是全部都unpapply [-a] 回去
  8. 一些 display 指令
quilt files #list files in patch
quilt diff #show patch
quilt previous, top, next #show previous, topmost, next patch name
quilt filename #list patches modifying file
quilt applied/unapplied #show applied/unapplied patch names
quilt series #list all patch names in series

我想,在配合下面這張圖應該就能很清楚的了解,他的使用


如果還不是很了解,可以看一下,下面這幾個連結 :)

No comments: