Re: git log causing hang while browsing upstream linux
On Tue, Apr 4, 2023, at 22:13, Rohit Ner wrote:
Show 7 quoted lines
> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
>
> What did you do before the bug happened? (Steps to reproduce your issue)
> 1. git clone https://github.com/torvalds/linux.git
> 2. git checkout master
> 3. git log --oneline --graph
Seems like `--graph` is expensive.
FWIW: on my machine:
$ time git log --oneline --graph | head -1
* 76f598ba7d8e Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm real 0m10.616s
user 0m9.594s
sys 0m0.654sSecond attempt is only marginally faster.
--
Kristoffer Haugsbakk