public class GitUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getBranch(File projectBasedir,
org.apache.maven.plugin.logging.Log log)
Get the current Git branch.
|
public static String getBranch(File projectBasedir, org.apache.maven.plugin.logging.Log log)
projectBasedir - the project "root" folder.log - the Log to use for logging.null if it couldn't
be estabilished.Copyright © 2017. All rights reserved.