show newer commits if on detached head
- Langage dominant
- Rust
- Étoiles
- 22.5k
- Forks
- 773
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par le chemin de génération du log, qui commence actuellement à HEAD, puis examinez les points d’entrée de detached-head et du parcours des branches. Utilisez les indications de libgit2 concernant git_graph_descendant_of pour déterminer quels sommets de branche doivent être affichés ; le travail est terminé lorsque le log affiche les commits plus récents et positionne correctement le detached HEAD, sans entreprendre tout le travail sur le graphe dans #81.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- git, rust
- Domaine
- cli
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Active
- Clarté
- Plutôt claire
- Accessibilité débutants
- 50/100