jonas / tig

Text-mode interface for git
https://jonas.github.io/tig/
GNU General Public License v2.0
12.44k stars 610 forks source link

tig slows down for large repositories #1354

Open jimaxun opened 1 month ago

jimaxun commented 1 month ago

env: ubuntu 2200 tig version: tig --version tig version 2.5.1 ncursesw version 6.2.20201114 readline version 8.1

I use this config ,but this issue not handle

yuechao.jia@SH-Ubuntu22009:/data/disk2/E05/linux-v6.1.49$ cat ~/.tigrc source ~/.tigrc.large yuechao.jia@SH-Ubuntu22009:/data/disk2/E05/linux-v6.1.49$ cat ~/.tigrc.large

Settings for speeding up Tig in large repositories

#

To use these settings copy the file to your HOME directory and include

it from your ~/.tigrc file:

#

$ cp contrib/large-repo.tigrc ~/.tigrc.large

$ echo "source ~/.tigrc.large" >> ~/.tigrc

Use Git's default (reverse chronological) order, never automatically

use topo-order for the commit graph

set commit-order = default

Don't show diffstat

set log-options =

Limit number of commits loaded by default to 1000

set main-options = -n 100

Don't show staged and unstaged changes in the main view

set show-changes = no

Optionally, use the old and faster but less acurate graph renderer

set main-view-commit-title-graph = v1

koutcher commented 1 week ago

set log-options = will only work with tig-2.5.9 or later.