是否有可以为每次提交输出的git命令:
git ls-tree -l -r <commit>创建的blob (仅限于创建的blob)有什么方法可以查看差异上的新文件大小吗?
如果我跑步git diff --name-only我会得到
path/to/changed/file.1
path/to/changed/file.2
path/to/changed/file.3
Run Code Online (Sandbox Code Playgroud)
我想要看到的是:
path/to/changed/file.1 1.7KB
path/to/changed/file.2 300Bytes
path/to/changed/file.3 9MB
Run Code Online (Sandbox Code Playgroud)
我可以运行git diff --name-only | xargs ls -l,但这也给了我文件权限、日期等。
有内置git diff命令来显示文件大小吗?