ILD

git log --full-diff 实现显示commit中不匹配path的其它文件
作者:Yuan Jianpeng 邮箱:yuanjianpeng@xiaomi.com
发布时间:2022-3-8 站点:Inside Linux Development

使用 git log --stat -p <path>,显示某个文件的git提交记录时,不会显示包含那个文件的commit里面的其它文件。


使用--full-diff可以实现显示commit中的其它文件,如:


$ git log --stat --full-diff target/linux/mediatek/patches-RB06/961-miwifi-hnat_account_info_sync_to_ip_account.patch

commit 2eef7a4d3971eb32a8a19834b3f019f476ed11ea

Author: yuxiao1 <yuxiao1@xiaomi.com>

Date:   Mon Jan 17 12:27:19 2022 +0800


    [platform][RB06]解决硬加速流量统计未生效的问题


    Change-Id: Ia5b83bad6615c73a798b774b3e25f18ed469248e


 package/miwifi/trafficd/pkg-src/ipaccount/module/ip_account_netlink.c                    | 4 +++-

 target/linux/mediatek/patches-RB06/961-miwifi-hnat_account_info_sync_to_ip_account.patch | 8 ++++----

 2 files changed, 7 insertions(+), 5 deletions(-)





Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.