Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magit : how to see log between 2 points

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 ?

like image 270
Adrien Coquio Avatar asked Nov 22 '12 14:11

Adrien Coquio


2 Answers

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).

like image 74
ebpa Avatar answered Oct 23 '22 02:10

ebpa


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.

like image 2
Magnar Avatar answered Oct 23 '22 03:10

Magnar