Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-lib
Commits
f328396c
Commit
f328396c
authored
2 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
add comments, add field
parent
9a9ab93b
No related branches found
No related tags found
1 merge request
!266
Report Version
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/gov/usgs/earthquake/nshmp/internal/AppVersion.java
+10
-0
10 additions, 0 deletions
...n/java/gov/usgs/earthquake/nshmp/internal/AppVersion.java
with
10 additions
and
0 deletions
src/main/java/gov/usgs/earthquake/nshmp/internal/AppVersion.java
+
10
−
0
View file @
f328396c
...
...
@@ -6,8 +6,14 @@ import com.google.common.base.Charsets;
import
com.google.common.io.Resources
;
import
com.google.gson.Gson
;
/**
* Interface for reading in version info JSON files.
*/
public
interface
AppVersion
{
/**
* Returns the version info for the repo.
*/
public
VersionInfo
getVersionInfo
();
static
VersionInfo
versionInfo
(
URL
resource
)
{
...
...
@@ -20,6 +26,9 @@ public interface AppVersion {
}
}
/**
* The version info of a repository.
*/
public
static
class
VersionInfo
{
public
String
branchName
;
public
int
commitDistance
;
...
...
@@ -27,6 +36,7 @@ public interface AppVersion {
public
String
gitHashFull
;
public
boolean
isCleanTag
;
public
String
lastTag
;
public
String
projectName
;
public
String
url
;
public
String
version
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment