git - 非递归 git log 和 diff

标签 git depth git-diff git-log non-recursive

git log -p .

只在当前目录下,不在子目录下

等价

svn log --diff --depth files .

这可能吗?

最佳答案

怎么样:

$ git log -p file1 file2 ...

或者,如果它们太多而无法输入:

$ find . -maxdepth 1 -type f | xargs git log -p

关于git - 非递归 git log 和 diff,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32540819/

相关文章:

git - 有没有一种简单的方法来交换暂存和非暂存的 Git 内容?

git - 我的同事是如何设法让 git checkout 移动文件的?

ruby /导轨 : determine how deeply nested an object is

Python:超出最大递归深度

带有作者过滤器的 git diff

git - 通过 git 删除一个 svn-Branch?

git - 如何在 IntelliJ IDEA 中设置自动启用 "--no-ff"选项?

algorithm - 查找给定预购的树高

git - 我不能让 git diff 使用 opendiff

git - 为 Git GUI 差异窗口设置 UTF-8 显示