jonas/tig

Support prefetch branches

Closed this issue · 2 comments

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

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

@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.