I would like to know how I can see the result of command like git log ..some-branch in magit ?

From the doc :

Giving a prefix argument to l will ask for the starting and end point of the history. This can be used to show the commits that are in one branch, but not in another, for example. The start point can also be a range of revisions “r1..r2”. In that case “r1” is used as the start and “r2” as the end point of the history.

But I do not understand how I can give this prefix argument ? Which key sequence I should use ?

有帮助吗?

解决方案

A prefix argument is given with C-u. However, that doesn't seem to work with my magit. To get a ranged log, I press "l" then tab over to "Ranged short" and press enter.

其他提示

C-u l rl works for me: it prompts for the two refs which will define the range.

In the current version of magit (2.11.0 as of writing this) log ranges can be displayed using l o ("log other") and then entering the commit range (ex: HEAD~5..HEAD).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top