git-up / GitUp

The Git interface you've been missing all your life has finally arrived.
http://gitup.co
GNU General Public License v3.0
11.45k stars 1.24k forks source link

[Feature Request] horizontal map view wrapping #946

Open notrobpike opened 11 months ago

notrobpike commented 11 months ago

When the commit graph is very long (as it usually is), add an option to horizontally wrap the graph according to the window height.

On macOS, this would remove the vertical scrolling and add a horizontal scrollbar if the graph becomes too wide.

Near the bottom of the window, you'd have terminal nodes like in a flowchart where you skip over to another area. If using the flowchart "theme", these nodes would be larger circles with a number in them. Then to the right, one "lane" over, at the top you'd find the same circled number to continue the flow. Note that unlike the small circles that indicate a commit at that point of the history, these circled number nodes need to be visually distinct from a "commit node".

If there are only a few active branches, this really allows packing more data into a single screenful. I'm looking at a repo now that has a dozen stale remote branches. If I turn on that view option, the horiz wrapping wouldn't be useful at all. So if a repo had a whole mess of release branches, this might not be useful for that. But if I just want to look at a few local branches and visualize merge activity, such feature would be pretty useful.

albgen commented 11 months ago

+1. Going to ask the same!

lucasderraugh commented 11 months ago

I can see how it could be useful for single or maybe very few branches. Though I don't quite see how more visual is necessarily helping here. I think having flowing columns could be confusing especially if we're alternating between the 2 visuals. Are there existing apps that do such a thing? Would less vertical space between commits resolve most of the gripe?