* lib/vc-mtime.c: Include windows-cygpath.h.
(abs_git_checkout): Invoke windows_cygpath_w.
* modules/vc-mtime (Depends-on): Add windows-cygpath.
+2025-05-05 Bruno Haible <bruno@clisp.org>
+
+ vc-mtime: Make it work with Cygwin's 'git' command on native Windows.
+ * lib/vc-mtime.c: Include windows-cygpath.h.
+ (abs_git_checkout): Invoke windows_cygpath_w.
+ * modules/vc-mtime (Depends-on): Add windows-cygpath.
+
2025-05-05 Bruno Haible <bruno@clisp.org>
New module windows-cygpath.
#include "safe-read.h"
#include "xstrtol.h"
#include "stat-time.h"
+#include "windows-cygpath.h"
#include "filename.h"
#include "xalloc.h"
#include "xgetcwd.h"
exitstatus =
wait_subprocess (child, "git", true, true, true, false, NULL);
if (exitstatus == 0)
- return line;
+ {
+ char *line_converted = windows_cygpath_w (line);
+ free (line);
+ return line_converted;
+ }
}
free (line);
return NULL;
getline
xstrtol
stat-time
+windows-cygpath
filename
xalloc
xgetcwd