Skip to content

Instantly share code, notes, and snippets.

@fujimura
Created April 19, 2014 12:15
Show Gist options
  • Select an option

  • Save fujimura/11082818 to your computer and use it in GitHub Desktop.

Select an option

Save fujimura/11082818 to your computer and use it in GitHub Desktop.
git-log app in sinatra
require 'sinatra'
get '/log' do
"<html><body>#{ `git log --format="<p>%h %an %ad %s</p>"`.each_line.map(&:chomp).join }</body></html>"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment