Skip to content

Conversation

@jelaniwoods
Copy link
Contributor

@jelaniwoods jelaniwoods commented May 6, 2021

Problem

I was thinking as a stopgap until we figure out some sort of JS graphing library to display the git graph, should we go back to my old hack of displaying the output of git sla at the bottom of /git? I feel like the tree view (with all the branches unified) is essential

The downside is that we'd have to install the command-line tools that the old web_git depended on

git sla being an alias of git log --oneline --decorate --graph --all

Solution

Until it becomes feasible to draw the graph with the git gem, capture the output of the graph from the command line and display it below the commit form.

git-cli-graph

To test

  1. Add gem to Gemfile
gem "web_git", git: "https://github.com/firstdraft/web_git", branch: "jw-basic-cli-graph"
  1. Run install command
rails g web_git:install
  1. Run rails s
  2. Visit /git

@raghubetina
Copy link
Contributor

Wow, this is great. I love that it retains the benefit of clickable SHAs.

LGTM 🚢

@jelaniwoods jelaniwoods force-pushed the jw-basic-cli-graph branch from 16d6d28 to 1d4441f Compare June 7, 2021 20:51
@jelaniwoods jelaniwoods merged commit abdb3ba into spring2020 Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants