Emacs magit 命令显示分支中已修改文件的名称

发布于 2025-01-17 17:28:41 字数 161 浏览 1 评论 0原文

在分支上,我希望有效地运行此命令:

git diff --name-only master... 

使用Magit。像上面的分支上修改了已修改的文件名称的适当击键是什么?

While on a branch, I'm looking to run effectively this command:

git diff --name-only master... 

using magit. What is the appropriate keystroke to see the names of files that have been modified on a branch like the above?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

跨年 2025-01-24 17:28:41

没有一个magit命令可以执行此操作。

There is not a magit command to do this.

过期情话 2025-01-24 17:28:41

在 .gitalias 中,我包括

[alias]
dnom = diff --name-only master

然后在 git-status 窗口中输入“:” dnom,它运行 magit-git-command 并显示当前分支中与 master 不同的文件。

In .gitalias I include

[alias]
dnom = diff --name-only master

Then in the git-status window type ":" dnom, which runs magit-git-command and displays the files that differ in the current branch from master.

等风也等你 2025-01-24 17:28:41

在 magit 状态页面上,键入 d 表示 diff,r 表示范围,然后输入“master”作为要比较的分支。

它将显示所有差异,技巧是,在 Magit-diff 缓冲区上按 Shfit+Tab(绑定到“magit-section-cycle-global”)来折叠部分并仅显示文件名。

On the magit status page, type d for diff, r for range, and then enter "master" for the branch to diff with.

It will show all the diffs, the trick is, on the Magit-diff buffer press Shfit+Tab (which is bind to "magit-section-cycle-global") to collapse the sections and show only the file names.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文