mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 06:32:24 +00:00
Use git describe for doc HTML output
* Rakefile (:doc:upload): * doc/yas-doc-helper.el: Use 'git describe' output instead of 'git rev-parse', since it's more readable.
This commit is contained in:
@@ -125,12 +125,12 @@
|
||||
;; build, don't depend on git.
|
||||
(rev (unless src-epoch
|
||||
(ignore-errors
|
||||
(car (process-lines "git" "rev-parse" "--verify" "HEAD")))))
|
||||
(car (process-lines "git" "describe" "--dirty")))))
|
||||
(date (format-time-string
|
||||
"(%Y-%m-%d %H:%M:%S)"
|
||||
(seconds-to-time
|
||||
(string-to-number
|
||||
(or (if rev (car (process-lines "git" "show" "--format=%ct" rev))
|
||||
(or (if rev (car (process-lines "git" "show" "--format=%ct"))
|
||||
src-epoch)
|
||||
"0")))
|
||||
t))
|
||||
|
||||
Reference in New Issue
Block a user