Ramkumar Ramachandra <[email protected]> writes:

> Rémi Vanicat wrote:
>> Ramkumar Ramachandra <[email protected]>
>> writes:
>>> The graph that magit-log shows is quite useless in large projects:
>>> only the first few commits are shown,
>>
>> Using "e" will show more commit if needed.
>
> Yes, I know.  How many times do I press "e" to get 6-month old commits
> in git.git or linux.git?

Not so much. Each time you hit "e", it will show twice as many log. Be,
for 6 month log commits in git.git? I need one "e":

    C-u 3000 e

and you have the last 3000 commit, (apparently 10 months ago in
git.git). I have to concede that magit is slow with so many commit, and
the graph get in the way.

Mmm, removing the graph in magit could be done with

#+begin_src elisp
  (defun my-magit-i-do-not-want-graph ()
     (interactive)
     (setq magit-have-graph ()))
#+end_src

to be run in the magit-log buffer (this is untested, but it should
work). It make magit-log much more quick by the way.

[...]

>>
>> Did you try to just make magit-log to not show the graph? It should be
>> relatively easy.
>
> Yes, but the fundamental problem remains: it doesn't stream the output.
>
>> Another easy solution is M-x async-shell-command git --no-pager log, or
>>
>> (defun my-small-log ()
>>   (interactive)
>>   (async-shell-command "git --no-pager log"))
>
> Takes forever to complete on linux.git, git.git.  I want something
> usable immediately.

This is an async shell command, you don't need to wait for it to
complete. Just let it run, and look for what you want. But it seem it
eventually make the buffer too big for Emacs to cope easily,  my first
solution is probably the best one.

>
> I'm currently hacking on e-sink [1], and it definitely looks right the
> right thing to use after some polishing.
>
> [1]: https://github.com/artagnon/e-sink

I must admit to not having the time to look at this.

-- 
Rémi Vanicat

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to