作者gigigigi (gigigigi)
看板Linux
標題[問題] repo + git 日期排序
時間Thu Apr 27 22:26:17 2017
因為專案裡面有很多個個別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://webptt.com/m.aspx?n=bbs/Linux/M.1493303180.A.67B.html
1F:推 goldie: 改git log的format + pipe到sort,這樣可以嗎? 04/30 10:10
2F:推 goldie: 例如: repo forall -c "git --no-pager log --no-show-sig 04/30 10:27
3F:→ goldie: nature --pretty=format:'[%ad] <%an> %s%d'" | sort 04/30 10:27
4F:→ gigigigi: pipe + sort 如果可以應該符合我需求 04/30 13:44
5F:→ gigigigi: fatal: unrecognized argument: --no-show-signature 04/30 13:45
6F:→ gigigigi: 只有我執行你的command line 會有問題~是git 版本差異? 04/30 13:45
7F:推 goldie: 可能我的 git 版本較新,你可以拿掉那個參數。 05/03 19:22