sensorflo/git-draw

Syntax error

Closed this issue · 2 comments

I am getting this issue when I run the script on git-draw's repo itself
Error: git-draw.dot: syntax error in line 16 near '\'

I just pushed a commit fixing the bug. But anyway -- git-draw is only intended to draw tiny toy repositories to learn Git's internal data structures. If you use git-draw on a real repository, even a small one such as git-draw, the resulting picture will be far too large.

You should output to svg files. That way, even large repositories (even draw-git) would work.
I changed this line
to
dot -Tsvg "$dotfilename" > "$imgfilename" || exit 1
as well as the default file-name here
to
imgfilename=git-draw.svg
and things looked a lot better.