]> Savannah Git Hosting - gnulib.git/commitdiff
vc-mtime: Improve comment.
authorBruno Haible <bruno@clisp.org>
Tue, 25 Feb 2025 08:19:52 +0000 (09:19 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 25 Feb 2025 08:20:16 +0000 (09:20 +0100)
Suggested by Paul Eggert.

* lib/vc-mtime.c (git_mtime): Clarify CommitDate vs. AuthorDate.

ChangeLog
lib/vc-mtime.c

index 3e170e5117f907eb4bb69b50f33ab51362d0678d..dfea4e0e6e0ee9f94085bf48705147d3cd6b8cfd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-02-25  Bruno Haible  <bruno@clisp.org>
+
+       vc-mtime: Improve comment.
+       Suggested by Paul Eggert.
+       * lib/vc-mtime.c (git_mtime): Clarify CommitDate vs. AuthorDate.
+
 2025-02-24  Bruno Haible  <bruno@clisp.org>
 
        vc-mtime: New module.
index 0f333d5b6b11ea9b4c2911102e81afdfa6c44156..0e609033f66df2a43062ff77010849e4c84c5083 100644 (file)
@@ -102,7 +102,9 @@ static int
 git_mtime (struct timespec *mtime, const char *filename)
 {
   /* Run "git log -1 --format=%ct -- FILENAME".  It prints the time of last
-     modification, as the number of seconds since the Epoch.
+     modification (the 'CommitDate', not the 'AuthorDate' which merely
+     represents the time at which the author locally committed the first version
+     of the change), as the number of seconds since the Epoch.
      The '--' option is for the case that the specified file was removed.  */
   const char *argv[7];
   pid_t child;