whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Bazley <s...@apache.org>
Subject [whimsy.git] [1/2] Commit e9dd567: Extract git info to identify the workspace version of code
Date Fri, 22 Jan 2016 17:33:07 GMT
Commit e9dd567d85393249e007fd709c330a9adcf3630c:
    Extract git info to identify the workspace version of code


Branch: refs/heads/master
Author: Sebb <sebb@apache.org>
Committer: Sebb <sebb@apache.org>
Pusher: sebb <sebb@apache.org>

------------------------------------------------------------
lib/whimsy/asf.rb                                            | ++++ 
------------------------------------------------------------
4 changes: 4 additions, 0 deletions.
------------------------------------------------------------


diff --git a/lib/whimsy/asf.rb b/lib/whimsy/asf.rb
index 7e6b4cc..811162a 100644
--- a/lib/whimsy/asf.rb
+++ b/lib/whimsy/asf.rb
@@ -17,4 +17,8 @@ def self.library_mtime
     times = sources.map {|source| File.mtime(source)}
     times.max.gmtime
   end
+  def self.library_gitinfo
+    return @info if @info
+    @info = `git show --format="%h  %cI"  -s HEAD`.chomp
+  end
 end

Mime
View raw message