【问题标题】:Show file edited in git log [duplicate]显示在 git log 中编辑的文件 [重复]
【发布时间】:2015-02-04 18:58:09
【问题描述】:

我正在使用它来生成带有日期的详细日志:

git log --pretty --since="2014-10-20"

commit 7fa4e9c196b29d925b33aff3c85a98f53248e77b
Author: a_coder <a_coder@example.com>
Date:   Wed Nov 26 07:58:49 2014 -0500

feedCat tests ok

输出不包括正在编辑的文件。有没有办法添加这个?我试过-p,但这包括文件内容和差异。我现在只是在寻找文件/脚本名称。

这可能在 git log 中吗?

【问题讨论】:

    标签: git logging


    【解决方案1】:

    我知道,如果你使用

    git show <commithash>
    

    您可以显示受提交影响的文件。不知道你是否可以用 git log 做到这一点

    【讨论】:

    • 我不是投反对票的人,但我想听听为什么投反对票的人的回答不好——为了教育。
    猜你喜欢
    • 2015-04-02
    • 2021-10-11
    • 2012-12-21
    • 2012-11-07
    • 2014-02-23
    • 2013-06-25
    • 2015-08-21
    • 2010-11-16
    • 2012-06-05
    相关资源
    最近更新 更多