Permalink
Browse files

Rewrite the revision graph renderer

The new renderer is more 'square' but comes with three modes: UTF-8,
ncurses (using chtype graphical characters), and ASCII. The three modes
can be toggled. Enable revision graph rendering by default.
  • Loading branch information...
1 parent 389378a commit 607cfb11cd9b6e2beaa36158d77842f8aac7fd67 Jonas Fonseca committed with Dec 11, 2009
Showing with 714 additions and 243 deletions.
  1. +1 −0 .gitignore
  2. +6 −3 Makefile
  3. +6 −0 NEWS
  4. +410 −0 graph.c
  5. +73 −0 graph.h
  6. +2 −2 io.c
  7. +1 −1 io.h
  8. +1 −0 manual.txt
  9. +106 −0 test-graph.c
  10. +99 −223 tig.c
  11. +0 −10 tig.h
  12. +9 −4 tigrc.5.txt
View
@@ -16,6 +16,7 @@ tig.1
tig.spec
tigrc.5
tigmanual.7
+test-graph
*.html
*.o
*.xml
View
@@ -35,8 +35,8 @@ RPM_RELEASE = $(word 2,$(RPM_VERLIST))$(if $(WTDIRTY),.dirty)
LDLIBS ?= -lcurses
CFLAGS ?= -Wall -O2
DFLAGS = -g -DDEBUG -Werror -O0
-PROGS = tig
-SOURCE = tig.c tig.h io.c io.h
+PROGS = tig test-graph
+SOURCE = tig.c tig.h io.c io.h graph.c graph.h
TXTDOC = tig.1.txt tigrc.5.txt manual.txt NEWS README INSTALL BUGS TODO
MANDOC = tig.1 tigrc.5 tigmanual.7
HTMLDOC = tig.1.html tigrc.5.html manual.html README.html NEWS.html
@@ -150,8 +150,11 @@ configure: configure.ac acinclude.m4
install-doc-man install-doc-html clean spell-check dist rpm
io.o: io.c io.h tig.h
+graph.o: tig.h
tig.o: tig.c tig.h io.h
-tig: tig.o io.o
+tig: tig.o io.o graph.o
+test-graph.o: test-graph.c io.h tig.h graph.h
+test-graph: io.o graph.o
tig.spec: contrib/tig.spec.in
sed -e 's/@@VERSION@@/$(RPM_VERSION)/g' \
View
6 NEWS
@@ -4,6 +4,12 @@ Release notes
tig master
----------
+Improvements:
+
+ - Start rewrite of the revision graph renderer. Three modes are
+ supported UTF-8, ncurses line graphics, and ASCII. Also, enable
+ revision graph rendering by default.
+
Bug fixes:
- Fix opening of diffs when browsing branches.
Oops, something went wrong.

0 comments on commit 607cfb1

Please sign in to comment.