summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-tex/vc/files/vc-0.5-git-date.patch')
-rw-r--r--dev-tex/vc/files/vc-0.5-git-date.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-tex/vc/files/vc-0.5-git-date.patch b/dev-tex/vc/files/vc-0.5-git-date.patch
new file mode 100644
index 000000000000..f05c857d1026
--- /dev/null
+++ b/dev-tex/vc/files/vc-0.5-git-date.patch
@@ -0,0 +1,14 @@
+Use CommitterDate instead of AuthorDate, because the latter is not
+guaranteed to increase monotonously.
+
+--- vc-orig/git-unix/vc-git.awk
++++ vc/git-unix/vc-git.awk
+@@ -39,7 +39,7 @@
+ ### Standard encoding is UTF-8.
+ if (Encoding == "") Encoding = "UTF-8"
+ ### Extract relevant information from variables.
+- LongDate = substr(AuthorDate, 1, 25)
++ LongDate = substr(CommitterDate, 1, 25)
+ DateRAW = substr(LongDate, 1, 10)
+ DateISO = DateRAW
+ DateTEX = DateISO