Skip to main content

FlixelGitUtil

View source

class

org.flixelgdx.util.FlixelGitUtil

public final class FlixelGitUtil

Utility class for obtaining Git information about the current repository Flixel is being run in.

Methods

getRepoInfo()

public static RepoInfo getRepoInfo()

Gets basic Git info about the current app running.

Returns: A RepoInfo record with basic info.


RepoInfo

record

org.flixelgdx.util.FlixelGitUtil.RepoInfo

public static final record RepoInfo(String commit, String branch, String remoteUrl, String isModified)

A record holding all info about the current Git repository.

Constructors

RepoInfo(String, String, String, String)

public RepoInfo(String commit, String branch, String remoteUrl, String isModified)

Parameters:

NameDescription
commitThe current commit.
branchThe current branch.
remoteUrlThe repository that the game is being worked on.
isModifiedDoes the current repository have any changes made to it?

Methods

commit()

public String commit()

branch()

public String branch()

remoteUrl()

public String remoteUrl()

isModified()

public String isModified()

toString()

public final String toString()

hashCode()

public final int hashCode()

equals(Object)

public final boolean equals(Object o)