[問題] repo + git 日期排序

看板Linux作者 (gigigigi)時間7年前 (2017/04/27 22:26), 編輯推噓3(304)
留言7則, 2人參與, 最新討論串1/1
因為專案裡面有很多個個別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

04/30 10:10, , 1F
改git log的format + pipe到sort,這樣可以嗎?
04/30 10:10, 1F

04/30 10:27, , 2F
例如: repo forall -c "git --no-pager log --no-show-sig
04/30 10:27, 2F

04/30 10:27, , 3F
nature --pretty=format:'[%ad] <%an> %s%d'" | sort
04/30 10:27, 3F

04/30 13:44, , 4F
pipe + sort 如果可以應該符合我需求
04/30 13:44, 4F

04/30 13:45, , 5F
fatal: unrecognized argument: --no-show-signature
04/30 13:45, 5F

04/30 13:45, , 6F
只有我執行你的command line 會有問題~是git 版本差異?
04/30 13:45, 6F

05/03 19:22, , 7F
可能我的 git 版本較新,你可以拿掉那個參數。
05/03 19:22, 7F
文章代碼(AID): #1P0V-CPx (Linux)