看板 Linux 關於我們 聯絡資訊
因為專案裡面有很多個個別git 管理 我最近有個需求想知道某日期之後有哪些 commit repo forall -c "git log --after="2017-3-23" --date-order" 上面的 --date-order 參數看起來只能針對個別git 日期排序 不知道是否有辦法針對所有 git 指定日期之後的 git commit 做日期排序? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 175.181.189.156 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1493303180.A.67B.html
goldie: 改git log的format + pipe到sort,這樣可以嗎? 04/30 10:10
goldie: 例如: repo forall -c "git --no-pager log --no-show-sig 04/30 10:27
goldie: nature --pretty=format:'[%ad] <%an> %s%d'" | sort 04/30 10:27
gigigigi: pipe + sort 如果可以應該符合我需求 04/30 13:44
gigigigi: fatal: unrecognized argument: --no-show-signature 04/30 13:45
gigigigi: 只有我執行你的command line 會有問題~是git 版本差異? 04/30 13:45
goldie: 可能我的 git 版本較新,你可以拿掉那個參數。 05/03 19:22