Re: git log causing hang while browsing upstream linux
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Apr 11, 2023, 00:00 UTC
- Message-ID
- <ZDSjBQhyDBGi9wBN@nand.local>
- In-Reply-To
- <CAKazavzS112w3wsxnA-2ibWH3xGrE_w7Av+VZg-DfgfH0aK72A@mail.gmail.com>
On Mon, Apr 10, 2023 at 10:37:15PM +0530, Rohit Ner wrote:
> I have not given the command more than 10 seconds, shouldn't the > intended behaviour be to render the visible subgraph first?
This is possible with Git's "commit-graph" feature, which you can read about starting here:
https://devblogs.microsoft.com/devops/supercharging-the-git-commit-graph/
TL;DR: if you run "git commit-graph write" once before running "git log --oneline --graph", you'll get near-instantaneous results.
Thanks, Taylor