OSDN Git Service

Fix file history wrong
authorFrank Li <lznuaa@gmail.com>
Fri, 15 Jan 2010 04:38:48 +0000 (12:38 +0800)
committerFrank Li <lznuaa@gmail.com>
Fri, 15 Jan 2010 04:38:48 +0000 (12:38 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
ext/gitdll/gitdll.c

index 7ff8967..0257738 100644 (file)
@@ -267,9 +267,18 @@ char **strtoargv(char *arg, int *size)
        int count=0;\r
        char *p=arg;\r
        char **argv;\r
+       \r
        int i=0;\r
        while(*p)\r
        {\r
+               if(*p == '\\')\r
+                       *p='/';\r
+               p++;\r
+       }\r
+       p=arg;\r
+\r
+       while(*p)\r
+       {\r
                if(*p == ' ')\r
                        count ++;\r
                p++;\r
@@ -335,8 +344,7 @@ int git_open_log(GIT_LOG * handle, char * arg)
 \r
        init_revisions(p_Rev, g_prefix);\r
        p_Rev->diff = 1;\r
-       p_Rev->simplify_history = 0;\r
-       \r
+               \r
        cmd_log_init(argc, argv, g_prefix,p_Rev);\r
 \r
        p_Rev->pPrivate = argv;\r