mirror of
https://github.com/correl/melpa.git
synced 2024-11-25 03:00:10 +00:00
For git packages, use the last changed of only files in the package.
This commit is contained in:
parent
759ec4f2d0
commit
3e4c8ca859
1 changed files with 4 additions and 1 deletions
|
@ -222,7 +222,10 @@ seconds; the server cuts off after 10 requests in 20 seconds.")
|
||||||
(pb/run-process nil "git" "clone" repo dir)))
|
(pb/run-process nil "git" "clone" repo dir)))
|
||||||
(when commit
|
(when commit
|
||||||
(pb/run-process dir "git" "checkout" commit))
|
(pb/run-process dir "git" "checkout" commit))
|
||||||
(pb/run-process dir "git" "show" "-s" "--format='\%ci'" "HEAD")
|
(let ((files (pb/expand-file-list pkg-cwd
|
||||||
|
(or (plist-get cfg :files)
|
||||||
|
(list "*.el")))))
|
||||||
|
(apply 'pb/run-process dir "git" "log" "-n1" "--pretty=format:'\%ci'" files))
|
||||||
(pb/find-parse-time
|
(pb/find-parse-time
|
||||||
"\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [0-9]\\{2\\}:[0-9]\\{2\\}:[0-9]\\{2\\}\\)"))))
|
"\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [0-9]\\{2\\}:[0-9]\\{2\\}:[0-9]\\{2\\}\\)"))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue