gitui-org / gitui-org/gitui

show newer commits if on detached head

Aperta
#1,964 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
feature-request good first issue
Lingua principale
Rust
Stelle
22.5k
Fork
773
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Right now the log starts from HEAD - no matter if that's a tip of a branch or not.

For #81 we need to do the revwalk from every tip and come up with a smart data structure that allows us to draw the correct graph without storing the whole graph in memory.

Before tackling #81 we can at least [determine](https://libgit2.org/libgit2/#HEAD/group/graph/git_graph_descendant_of) if we are on a detached head and then iterate the branches whether one is a descendent of our current HEAD and then start from the branch tip and visualize where HEAD is in the log.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.