[libgit2-glib] Use correct field (CHANGED vs CREATED) to populate ctime
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Use correct field (CHANGED vs CREATED) to populate ctime
- Date: Thu, 25 Aug 2016 14:37:37 +0000 (UTC)
commit 19c264b1f7722dd835e443396823b0f7074dc56c
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Thu Aug 25 16:36:54 2016 +0200
Use correct field (CHANGED vs CREATED) to populate ctime
libgit2-glib/ggit-index-entry.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgit2-glib/ggit-index-entry.c b/libgit2-glib/ggit-index-entry.c
index 22b77c9..e006d82 100644
--- a/libgit2-glib/ggit-index-entry.c
+++ b/libgit2-glib/ggit-index-entry.c
@@ -721,8 +721,8 @@ ggit_index_entry_stat (GgitIndexEntry *entry,
G_FILE_ATTRIBUTE_STANDARD_SIZE ","
G_FILE_ATTRIBUTE_TIME_MODIFIED ","
G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC ","
- G_FILE_ATTRIBUTE_TIME_CREATED ","
- G_FILE_ATTRIBUTE_TIME_CREATED_USEC ","
+ G_FILE_ATTRIBUTE_TIME_CHANGED ","
+ G_FILE_ATTRIBUTE_TIME_CHANGED_USEC ","
G_FILE_ATTRIBUTE_UNIX_DEVICE ","
G_FILE_ATTRIBUTE_UNIX_INODE ","
G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE ","
@@ -749,11 +749,11 @@ ggit_index_entry_stat (GgitIndexEntry *entry,
entry->entry->ctime.seconds =
g_file_info_get_attribute_uint64 (info,
- G_FILE_ATTRIBUTE_TIME_CREATED);
+ G_FILE_ATTRIBUTE_TIME_CHANGED);
entry->entry->ctime.nanoseconds =
g_file_info_get_attribute_uint32 (info,
- G_FILE_ATTRIBUTE_TIME_CREATED_USEC) * 1e3;
+ G_FILE_ATTRIBUTE_TIME_CHANGED_USEC) * 1e3;
entry->entry->dev =
g_file_info_get_attribute_uint32 (info,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]