projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
revision arguments: ..B means HEAD..B, just like A.. means A..HEAD
[git.git]
/
convert-objects.c
diff --git
a/convert-objects.c
b/convert-objects.c
index
a892013
..
b49bce2
100644
(file)
--- a/
convert-objects.c
+++ b/
convert-objects.c
@@
-1,4
+1,5
@@
-#define _XOPEN_SOURCE /* glibc2 needs this */
+#define _XOPEN_SOURCE 500 /* glibc2 and AIX 5.3L need this */
+#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
#include <time.h>
#include "cache.h"
#include <time.h>
#include "cache.h"
@@
-316,6
+317,8
@@
int main(int argc, char **argv)
unsigned char sha1[20];
struct entry *entry;
unsigned char sha1[20];
struct entry *entry;
+ setup_git_directory();
+
if (argc != 2 || get_sha1(argv[1], sha1))
usage("git-convert-objects <sha1>");
if (argc != 2 || get_sha1(argv[1], sha1))
usage("git-convert-objects <sha1>");