From 3e4c8ca859ef7deec2cbc8c60345423d49a6382a Mon Sep 17 00:00:00 2001 From: Donald Curtis Date: Tue, 17 Apr 2012 14:50:25 -0500 Subject: [PATCH] For git packages, use the last changed of only files in the package. --- package-build.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package-build.el b/package-build.el index eea8e501..27b928f9 100644 --- a/package-build.el +++ b/package-build.el @@ -222,7 +222,10 @@ seconds; the server cuts off after 10 requests in 20 seconds.") (pb/run-process nil "git" "clone" repo dir))) (when 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 "\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [0-9]\\{2\\}:[0-9]\\{2\\}:[0-9]\\{2\\}\\)"))))