saiwolf / git-log-html-win32

Win32 port of https://github.com/dhamidi/git-log-html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Now with a native Windows port!

That's right! You can now natively compile this tool with Visual Studio or Microsoft's Build Tools!

A fork in the road...

Howdy! I forked this repository because I needed this tool, but I wanted it to run natively on Windows without the use of CYGWIN or MINGW and MSYS.

Contact Information

If you need to reach me, shoot me an email @ saiwolf@swmnu.net ! Or make an issue here. I'll try to pay attention from time to time, though I'm infamous for forgetting!

The original README is preserved below.

Except for the git command and any code updates that I might have done.

Description

git-log-html takes the colorized output of git log and replaces ANSI colour codes with HTML span elements. The span elements have classes corresponding to the colour codes. See default.css for definitions of the most common classes.

Invocation

git-log-html
# runs
# git log --graph --abbrev-commit --decorate --date=format:%c \
# --format=format:'%C(bold blue)%h%C(reset) \
# - %C(bold green)(%ad)%C(reset) \
# %C(white)%s%C(reset) \
# %C(dim white)- %an <%ae>%C(reset) \
# %C(bold yellow)%d%C(reset)' --all

git-log-html -
# colourizes stdin

git-log-html FILE
# colourizes the contents of FILE

Installation for Windows (Added by Robert Cato)

Note: You can safely ignore the warnings. Or make a pull request if you feel like fixing them! Help is always wanted!

Visual Studio

  • Open git-log-html.sln in Visual Studio
  • Build -> Build Solution/Build Project
  • Look in the Debug/ or Release/ folders for the .exe

MS Build Tools

  • Open the MS Build Tools Command Prompt
  • Change to the win32 directory
  • Execute MSBuild git-log-html.vcxproj /property:Configuration=Debug for Debug builds
  • Execute MSBuild git-log-html.vcxproj /property:Configuration=Release for Release builds
  • Look in the Debug/ or Release/ folders under the win32 directory for the .exe

Example for Windows

Open up test.html in the win32 directory for a static view of what the output of this tool produces.

Authors

Original Code Authors

Dario Hamidi <dario.hamidi@gmail.com>

Selvam, Vignesh vignesh.selvam@one.verizon.com

Win32 Port written by

Win32 Port and this fork's owner: Robert Cato saiwolf@swmnu.net

About

Win32 port of https://github.com/dhamidi/git-log-html

License:GNU General Public License v3.0


Languages

Language:C 78.5%Language:HTML 18.3%Language:CSS 3.2%