jonas / tig

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

Support prefetch branches #1333

Closed silvio closed 1 month ago

silvio commented 1 month ago

Certain tasks can be automated using “git maintenance”. For example, it is possible to update the “commit-graph database” hourly or to automate “incremental repack” tasks daily. Another feature is to update all branches every hour. Exactly with the last point I have noticed a problem, “tig” does not show me a name for “prefetched branches”, but displays these commits as “ghost branches/commits”, when the branch is removed on the server, but the maintenance run has not yet taken place.

gitk view: image

tig view: image

Manual page for git maintenance: https://man7.org/linux/man-pages/man1/git-maintenance.1.html

koutcher commented 1 month ago

Add set reference-format = [prefetch] to your .tigrc to see prefetch references.

silvio commented 1 month ago

@koutcher Thanks for remind me about this option, but when the option isn't set, I'll have "ghost commits" like "test prefetch" on my example graphic.