[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 28d5496 11/63: Use git describe for doc HTML output
From: |
Noam Postavsky |
Subject: |
[elpa] master 28d5496 11/63: Use git describe for doc HTML output |
Date: |
Mon, 17 Jul 2017 22:54:11 -0400 (EDT) |
branch: master
commit 28d5496144cc1804a41df3a979802003513678d3
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
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.
---
Rakefile | 6 +-----
doc/yas-doc-helper.el | 4 ++--
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/Rakefile b/Rakefile
index 48a2086..e2bb4f7 100644
--- a/Rakefile
+++ b/Rakefile
@@ -76,16 +76,12 @@ namespace :doc do
Dir.glob("doc/stylesheets/*.css").each do |file|
FileUtils.cp file, 'doc/gh-pages/stylesheets'
end
- curRev = `git rev-parse --verify HEAD`.chomp()
+ curRev = `git describe`.chomp()
expRev = IO.read('doc/html-revision').chomp()
if curRev != expRev
raise ("The HTML rev: #{expRev},\n" +
"current rev: #{curRev}!\n")
end
- if !system "git diff-index --quiet HEAD"
- system "git status --untracked-files=no"
- raise "You have uncommitted changes!"
- end
Dir.chdir 'doc/gh-pages' do
sh "git commit -a -m 'Automatic documentation update.\n\n" +
"From #{curRev.chomp()}'"
diff --git a/doc/yas-doc-helper.el b/doc/yas-doc-helper.el
index 623ea9f..e272e41 100644
--- a/doc/yas-doc-helper.el
+++ b/doc/yas-doc-helper.el
@@ -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))
- [elpa] master updated (2cdd182 -> 3fd07de), Noam Postavsky, 2017/07/17
- [elpa] master 4fa52e6 01/63: Improve final message produced by yas-reload-all, Noam Postavsky, 2017/07/17
- [elpa] master 8412d71 03/63: Reword #744 yet again, Noam Postavsky, 2017/07/17
- [elpa] master 4ef1768 10/63: Add timestamp of source revision to HTML doc, Noam Postavsky, 2017/07/17
- [elpa] master 7b013db 06/63: Keep yas--snippets-at-point for compatibility, Noam Postavsky, 2017/07/17
- [elpa] master 5534cab 07/63: Respect yas-indent-line for mirror updates, Noam Postavsky, 2017/07/17
- [elpa] master c485d13 04/63: Remove last use of flet, Noam Postavsky, 2017/07/17
- [elpa] master 80a1098 02/63: Rework yas-reload-all message introduced by #744, Noam Postavsky, 2017/07/17
- [elpa] master 28d5496 11/63: Use git describe for doc HTML output,
Noam Postavsky <=
- [elpa] master cce2e0d 09/63: Make the documentation build reproducible, Noam Postavsky, 2017/07/17
- [elpa] master 2ca6321 05/63: Promote yas--snippets-at-point to a public API, Noam Postavsky, 2017/07/17
- [elpa] master 9abf842 19/63: Enable snippet-mode automatically, Noam Postavsky, 2017/07/17
- [elpa] master 48cd716 14/63: Use more compact format for snippet menus, Noam Postavsky, 2017/07/17
- [elpa] master b62cf52 23/63: Remove lambda list building hack, Noam Postavsky, 2017/07/17
- [elpa] master 7b3c29d 13/63: * doc/faq.org: Typos and grammar., Noam Postavsky, 2017/07/17
- [elpa] master 14819c9 28/63: Make yas-buffer-local-condition into a defcustom, Noam Postavsky, 2017/07/17
- [elpa] master f3d0e03 25/63: * yasnippet-tests.el (snippet-exit-hooks): New test., Noam Postavsky, 2017/07/17
- [elpa] master 4ee3835 08/63: Use expand-env for all snippet evaluations, Noam Postavsky, 2017/07/17
- [elpa] master 203df22 22/63: Use debug-on-error to simplify error handling, Noam Postavsky, 2017/07/17