Giter Site home page Giter Site logo

Comments (25)

extrawurst avatar extrawurst commented on April 30, 2024 33

Definitely on my list aswell πŸ‘

from gitui.

timabell avatar timabell commented on April 30, 2024 18

For the record I think tig does a decent job of graph rendering in a terminal and wouldn't be a bad thing to copy.
shutter_2022-09-27_04

from gitui.

huyhoang160593 avatar huyhoang160593 commented on April 30, 2024 8

how about this repo here which also visualize Git history graphs. Maybe worth checking out @extrawurst. And this is also written in Rust, too

from gitui.

williamdes avatar williamdes commented on April 30, 2024 5

how about this repo here which also visualize Git history graphs. Maybe worth checking out @extrawurst. And this is also written in Rust, too

It's really not bad, but still get the frustration of not having a readable tree. GitKraken and SmartGit manage to make it just right.
git-graph does not have alternating colors for branches and that makes it hard to know the base of the branch and it's target for a merge

Here is what I would expect to have in gitui:
image
Some way to have my branches, different remotes (contributors or team members), tags. The colors alternating are very important.

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024 3

A few ideas how this could be visualized: https://stackoverflow.com/questions/1057564/pretty-git-branch-graphs

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024 3

For sure, open for PRs πŸ˜‰

from gitui.

bew avatar bew commented on April 30, 2024 1

That would have been a good idea, thanks for the offer, but not right now anyhow.
I'm in the long process of re doing all my configs properly, and I still far from having a proper rust editor setup (I'd also need to learn writing rust, not just read, this project could help bootstrap the process for sure, but I'm not ready for now)

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024 1

The issue certainly is not how to make it look good atm. It’s just complex to get right on giant repos where not the entire list of commits is kept in memory let alone their ancestor relation info. The drawing then becomes the simple part

from gitui.

stale avatar stale commented on April 30, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from gitui.

bew avatar bew commented on April 30, 2024

nop little bot, don't close that please! πŸ˜ƒ

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024

@bew volunteering to take a go at it? :)

from gitui.

stale avatar stale commented on April 30, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from gitui.

kiuKisas avatar kiuKisas commented on April 30, 2024

up ?

from gitui.

kting28 avatar kting28 commented on April 30, 2024

Still a planned feature? With this it will be perfect!

from gitui.

MaiLunJiye avatar MaiLunJiye commented on April 30, 2024

suggestion: I hope we can merge, checkout and reset in the graph view like the vscode extension name git graph(https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph).

from gitui.

joseffilzmaier avatar joseffilzmaier commented on April 30, 2024

It would already be nice to just show the remote branches and local branches in the log viewer

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024

@joseffilzmaier not sure what you mean. There is little chance to have multiple references be on the same branch (we only show a single branch currently)

from gitui.

P4Cu avatar P4Cu commented on April 30, 2024

If gitui would ever draw more branches here's how libgit2 authors imagine it: https://github.com/libgit2/libgit2/blob/main/examples/log.c
Though they've not added the part that's related to --graph but it can be deduced out of parents.

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024

I put a bunch thought into this already. The biggest issue is keeping the revlog tab as efficient as it is right now.

I don’t want to start building a graph in memory to traverse. It’s a matter of finding an efficient way to store everything needed to draw the graph structure and jump around everywhere.

another factor is being able to draw iteratively while not everything is parsed yet (like now)

the example in libgit2 unfortunately is too simple to cover any of these questions.

from gitui.

P4Cu avatar P4Cu commented on April 30, 2024

Yeah, definitely! Compromising speed is not an option.
Git internally uses commit-graph (from 2.24) to avoid reading whole blobs I can't tell if libgit2 has this feature already but that could be a starting point.

from gitui.

tony avatar tony commented on April 30, 2024

Git internally uses commit-graph (from 2.24) to avoid reading whole blobs I can't tell if libgit2 has this feature already but that could be a starting point.

@extrawurst Would this be solve the problem, if it existed in the rust binding for libgit2?

I can't tell if libgit2 has this feature already but that could be a starting point.

As of today:

libgit2:

git2: nothing yet

from gitui.

hgezim avatar hgezim commented on April 30, 2024

I think gitup does visualizations the best by far:

CleanShot 2022-09-14 at 12 55 36@2x

from gitui.

Ergus avatar Ergus commented on April 30, 2024

Hi guys:

This issue seems to me the only killer feature missing in gitui at the moment. If you allow me to suggest something, I would prefer to draw the tree with simple unicode or ascii characters (like magit or tig already do) and then you can choose a fancy draw library if you like... but but once the basic is in... remember that some of us use old fashion terminals and very basic embedded systems (with ssh, serial or even worst... cmd from MS-Windows).

from gitui.

soloturn avatar soloturn commented on April 30, 2024

is this git log --graph not properly giving output to digest or the library is not properly supporting it?

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024

gitui does not shell out fetching the revision log to be as performant as possible.

from gitui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.