]> git.proxmox.com Git - libgit2.git/commitdiff
libgit2 version 0.10.0, "very disco"
authorVicent Marti <tanoku@gmail.com>
Mon, 14 Mar 2011 21:55:32 +0000 (23:55 +0200)
committerVicent Marti <tanoku@gmail.com>
Mon, 14 Mar 2011 22:02:29 +0000 (00:02 +0200)
A version *so* awesome that needs 2 version bumps AND a codename.

Major features:

- New internal garbage collection (harder)
- Pack backend rewritten from scratch (better)
- Revision walker rewritten from scratch (faster)
- New object interdependency system (stronger)
- Unique OID shortener
- Reference listing

In honor of one heck of a music album, released ten years ago,
yesterday.

include/git2.h
wscript

index b08c25ed196b142a4bbff82d30a7a9e9e269378d..248c2ba3955d71afa4e51a9f5901b06ec6a39302 100644 (file)
@@ -26,9 +26,9 @@
 #ifndef INCLUDE_git_git_h__
 #define INCLUDE_git_git_h__
 
-#define LIBGIT2_VERSION "0.8.0"
+#define LIBGIT2_VERSION "0.10.0"
 #define LIBGIT2_VER_MAJOR 0
-#define LIBGIT2_VER_MINOR 8
+#define LIBGIT2_VER_MINOR 10
 #define LIBGIT2_VER_REVISION 0
 
 #include "git2/common.h"
diff --git a/wscript b/wscript
index aeb17a9f4acb6a5d59d6294b04cd2ef97792e35c..f9daca375725ef5280448f3a9c918edc6f8b178a 100644 (file)
--- a/wscript
+++ b/wscript
@@ -112,10 +112,10 @@ def get_libgit2_version(git2_h):
     line = None
 
     with open(git2_h) as f:
-        line = re.search(r'^#define LIBGIT2_VERSION "(\d\.\d\.\d)"$', f.read(), re.MULTILINE)
+        line = re.search(r'^#define LIBGIT2_VERSION "(\d+\.\d+\.\d+)"$', f.read(), re.MULTILINE)
 
     if line is None:
-        raise "Failed to detect libgit2 version"
+        raise Exception("Failed to detect libgit2 version")
 
     return line.group(1)