Magit: how to view the log between two points

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

From doc :

Providing the prefix argument l queries the start and end points of the story. This can be used to display commits that are in one branch, but not in another, for example. The starting point may also be a series of changes to "r1..r2". In this case, โ€œr1โ€ is used as the beginning and โ€œr2โ€ as the ending point of the story.

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

+4
source share
3 answers

The prefix argument is specified using Cu . However, this is not like my magic. To get the ranking log, press "l", then go to "Ranged short" and press enter.

+2
source

Cu l rl works for me: it asks for two refs that will determine the range.

+2
source

In the current version of magit ( 2.11.0 since writing this), the log ranges can be displayed using l o ("log other"), and then enter the commit range (for example: HEAD~5..HEAD ).

+1
source

Source: https://habr.com/ru/post/1447759/


All Articles