简体   繁体   中英

git's equivalent of svnlook changed

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 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! :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM