开发者

git's equivalent of svnlook changed

开发者 https://www.devze.com 2023-02-11 10:40 出处:网络
Is there a Git command equivalent to Subversion\'s: svnlook changed -r REVISION REPO I\'m interested in the first character indicating whether a file has been Added, Deleted, or Updated. If there

Is there a Git command equivalent to Subversion's:

svnlook changed -r REVISION REPO

I'm interested in the first character indicating whether a file has been Added, Deleted, or Updated. If there are ready-to-use scripts that would do this, it's fine. I know I can do this via script, parsing the output (like of git show hash --pretty=medium, look for 'new file mode', etc), I'm just wondering if there is something out there already so I开发者_如何学Python don't need to reinvent the wheel. Otherwise I'll just do it...


OK, I finally found a way to accomplish this through git itself!

 git log --name-status --diff-filter=ACDMRT -U 3a94917b577fd0af90e013d9b3a7a36a211c2533

Nice! :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号