File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
processor/java/org/truffleruby/processor
shared/java/org/truffleruby/shared Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ public class BuildInformationProcessor extends TruffleRubyProcessor {
46
46
private String buildName ;
47
47
private String shortRevision ;
48
48
private String fullRevision ;
49
+ private boolean isDirty ;
49
50
private String compileDate ;
50
51
private int copyrightYear ;
51
52
private String kernelMajorVersion ;
@@ -58,6 +59,7 @@ public synchronized void init(ProcessingEnvironment env) {
58
59
buildName = System .getenv ("TRUFFLERUBY_BUILD_NAME" );
59
60
fullRevision = runCommand ("git rev-parse HEAD" );
60
61
shortRevision = fullRevision .substring (0 , 8 );
62
+ isDirty = !runCommand ("git status --porcelain" ).isBlank ();
61
63
compileDate = runCommand ("git log -1 --date=short --pretty=format:%cd" );
62
64
copyrightYear = Integer .parseInt (compileDate .split ("\\ -" )[0 ]);
63
65
kernelMajorVersion = findKernelMajorVersion ();
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ public interface BuildInformation {
20
20
21
21
String getFullRevision ();
22
22
23
+ boolean isDirty ();
24
+
23
25
int getCopyrightYear ();
24
26
25
27
String getCompileDate ();
You can’t perform that action at this time.
0 commit comments