[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gited e8f116d 02/73: Default to beginning of epoch when
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gited e8f116d 02/73: Default to beginning of epoch when no commit time info |
Date: |
Sun, 29 Nov 2020 00:00:27 -0500 (EST) |
branch: externals/gited
commit e8f116d5a88017b97a4ed1451b953ea0fd6104fb
Author: Tino Calancha <tino.calancha@gmail.com>
Commit: Tino Calancha <tino.calancha@gmail.com>
Default to beginning of epoch when no commit time info
Default to '1970-01-01 00:00' (a string) when commit time is not available.
This fixes gited-list-branches when pattern is "tags".
* gited.el (gited--fill-branch-alist): Commit time in `gited-branch-alist'
must
be an string.
---
gited.el | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/gited.el b/gited.el
index 4927571..86e2eb4 100644
--- a/gited.el
+++ b/gited.el
@@ -10,9 +10,9 @@
;; Compatibility: GNU Emacs: 24.4
;; Version: 0.2.0
;; Package-Requires: ((emacs "24.4") (cl-lib "0.5"))
-;; Last-Updated: Fri Jun 02 09:30:00 JST 2017
+;; Last-Updated: Fri Jun 02 11:10:51 JST 2017
;; By: calancha
-;; Update #: 634
+;; Update #: 635
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
@@ -2411,14 +2411,13 @@ reach the beginning of the buffer."
(error "No Git repository in current directory"))
(insert ")")
(mapcar (lambda (x)
- (when (stringp (car x)) ; No time: set it to beginning
- ; of epoch.
- (push 0 x))
+ (when (stringp (car x)) ; No time: set it to beginning
of epoch.
+ (push "1970-01-01 00:00" x))
(when (= (length x) 4) ; Group time an time zone within
alist.
(setf (car x) (cons (car x) (cadr x)))
(setf (cdr x) (cddr x)))
(when (and (stringp (car (last x))) ; If no Author, set
- ; it Unknown.
+ ; it Unknown.
(string= "" (car (last x))))
(setf (car (last x)) "Unknown"))
x)
@@ -2438,8 +2437,8 @@ reach the beginning of the buffer."
;; FIXME: Would work for a zone as:
+0530 ?
(and zone (* 36 zone))))
(t ;; HACK: Workaround for Emacs
versions < 25 that don't accept
- ;; ZONE arg in functions like
`decode-time';
- ;; or `format-time-string', where
ZONE has less general meaning.
+ ;; ZONE arg in functions like
`decode-time';
+ ;; or `format-time-string', where ZONE
has less general meaning.
(let ((time (decode-time
(seconds-to-time
time-secs)))
(gited-date-format
@@ -2486,7 +2485,8 @@ reach the beginning of the buffer."
(current-buffer) nil)
(buffer-string))))
;; Format time in seconds as `gited-date-format'.
- (setf (car entry) (format-time-fn (caar entry) (cdar
entry)))
+ (when (consp (car entry))
+ (setf (car entry) (format-time-fn (caar entry)
(cdar entry))))
(append `(,(1+ idx)) (get-mark-fn entry)
entry `(,str)))))))
(progress-reporter-done prep)
- [elpa] externals/gited 8241ee5 41/73: gited-checkout-branch: Set right faces for marked branches, (continued)
- [elpa] externals/gited 8241ee5 41/73: gited-checkout-branch: Set right faces for marked branches, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 0a303a1 70/73: Make code more compact by using pcase-dolist, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 40e57eb 60/73: * gited/gited.el: Don't require `gited-ci`, which isn't found., Stefan Monnier, 2020/11/29
- [elpa] externals/gited b5fdc7e 61/73: Add missing file gited-ci.el, Stefan Monnier, 2020/11/29
- [elpa] externals/gited ad074e1 49/73: * packages/gited/gited.el (gited-stash-branch): Update Gited buffer on success, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 36ec8fa 34/73: ; * packages/gited/gited.el: Update file header., Stefan Monnier, 2020/11/29
- [elpa] externals/gited f81463e 44/73: gited-git-checkout: New function, Stefan Monnier, 2020/11/29
- [elpa] externals/gited d78161b 56/73: * packages/gited/gited.el (gited-pull): Delete unused variable, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 475e297 72/73: Support Gited buffers over a tramp connection, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 8f6722e 66/73: * gited.el: Bump version to 0.5.4, Stefan Monnier, 2020/11/29
- [elpa] externals/gited e8f116d 02/73: Default to beginning of epoch when no commit time info,
Stefan Monnier <=
- [elpa] externals/gited cc4d5f7 17/73: Use taggerdate/taggername when listing tags, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 68c723a 46/73: * gited.el (gited-git-checkout): Avoid harmless warning., Stefan Monnier, 2020/11/29
- [elpa] externals/gited 7a691c9 57/73: Skip tests when Git is not available, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 33c42d9 55/73: gited-pull fetches all remote branches, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 96ec28a 35/73: * gited.el (gited-goto-branch): Return point on success., Stefan Monnier, 2020/11/29
- [elpa] externals/gited c8eaa05 58/73: gited.el: Merge branch 'show-trunk-ci-status', Stefan Monnier, 2020/11/29
- [elpa] externals/gited 736ac62 52/73: Do not assume that 'git rev-parse 1' exits with status != 0, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 910cf66 40/73: * gited.el (gited-do-sync-with-trunk): Fix typo in docstring., Stefan Monnier, 2020/11/29
- [elpa] externals/gited dc0b527 38/73: gited-do-sync-with-trunk: New command, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 2ce2163 13/73: Prune deleted remote branches, Stefan Monnier, 2020/11/29