cgit

commit 849ecd961df9454d6f849eac34e6f501395c4f01

Author: John Keeping <john@keeping.me.uk>

Update git to v1.8.2.1

This requires a small change to how we handle notes, but otherwise just
works.

Note that we can't use anything from v1.8.0 until v1.8.2.1 because some
of the symbols that we need for graph drawing were made private in
v1.8.0 and this was not reverted until v1.8.2.1.

Signed-off-by: John Keeping <john@keeping.me.uk>

 Makefile | 2 +-
 ui-commit.c | 3 ++-
 ui-log.c | 6 +++---


diff --git a/Makefile b/Makefile
index 83d471665e3ca2af793fa4fac8eade40890f0a8e..59edab0991ad44475a324dfa7b90c8ed0cc7c3fb 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ htmldir = $(docdir)
 pdfdir = $(docdir)
 mandir = $(prefix)/share/man
 SHA1_HEADER = <openssl/sha.h>
-GIT_VER = 1.7.12.4
+GIT_VER = 1.8.2.1
 GIT_URL = https://git-core.googlecode.com/files/git-$(GIT_VER).tar.gz
 INSTALL = install
 MAN5_TXT = $(wildcard *.5.txt)








diff --git a/ui-commit.c b/ui-commit.c
index 078328529b54fd15f7e1f6eacc013c9a97cfcb53..5a552a19cfa381e2b7cfb685d39de9cc46c08813 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -36,7 +36,8 @@ 		return;
 	}
 	info = cgit_parse_commit(commit);
 
-	format_note(NULL, sha1, &notes, PAGE_ENCODING, 0);
+	init_display_notes(NULL);
+	format_display_notes(sha1, &notes, PAGE_ENCODING, 0);
 
 	load_ref_decorations(DECORATE_FULL_REFS);
 




diff --git a/ui-log.c b/ui-log.c
index aaffb4ef279e17cac4a4bedaab16e55a22ad6b3a..8d8b2351b1dd6e4a0c34a3b9f5e8a5d5da5e2fca 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -195,9 +195,8 @@ 			if (info->msg && *(info->msg)) {
 				strbuf_addstr(&msgbuf, info->msg);
 				strbuf_addch(&msgbuf, '\n');
 			}
-			format_note(NULL, commit->object.sha1, &msgbuf,
-			            PAGE_ENCODING,
-			            NOTES_SHOW_HEADER | NOTES_INDENT);
+			format_display_notes(commit->object.sha1,
+					     &msgbuf, PAGE_ENCODING, 0);
 			strbuf_addch(&msgbuf, '\n');
 			strbuf_ltrim(&msgbuf);
 		}
@@ -397,6 +396,7 @@ 		free_commit_list(commit->parents);
 		commit->parents = NULL;
 	}
 
+	init_display_notes(NULL);
 	for (i = 0; i < cnt && (commit = get_revision(&rev)) != NULL; i++) {
 		print_commit(commit, &rev);
 		free(commit->buffer);