WhaleUtils
androidJvm
git
/
com.bluewhaleyt.git
/
GitUtils
Git
Utils
class
GitUtils
(
localPath
:
String
?
=
null
,
remotePath
:
String
?
=
null
)
Members
Constructors
Git
Utils
Link copied to clipboard
constructor
(
localPath
:
String
?
=
null
,
remotePath
:
String
?
=
null
)
Properties
git
Link copied to clipboard
val
git
:
Git
repo
Link copied to clipboard
var
repo
:
Repository
Functions
add
Link copied to clipboard
fun
add
(
filePattern
:
String
?
=
"."
)
clone
Repository
Link copied to clipboard
fun
cloneRepository
(
writer
:
Writer
?
=
null
)
commit
Link copied to clipboard
fun
commit
(
message
:
String
)
get
Changed
Files
Link copied to clipboard
fun
getChangedFiles
(
commit
:
RevCommit
)
:
List
<
String
>
get
Changes
Of
Commit
Link copied to clipboard
fun
getChangesOfCommit
(
commit
:
RevCommit
)
:
List
<
DiffEntry
>
?
get
Changes
Type
Of
Commit
Link copied to clipboard
fun
getChangesTypeOfCommit
(
commit
:
RevCommit
)
:
List
<
DiffEntry.ChangeType
>
get
Commit
List
Link copied to clipboard
fun
getCommitList
(
)
:
List
<
RevCommit
>
get
Diff
Content
Link copied to clipboard
fun
getDiffContent
(
commit
:
RevCommit
,
filePath
:
String
,
withHeader
:
Boolean
=
false
)
:
String
?
get
File
Content
Link copied to clipboard
fun
getFileContent
(
commit
:
RevCommit
,
filePath
:
String
)
:
String
?
get
First
Change
Type
Of
Commit
Link copied to clipboard
fun
getFirstChangeTypeOfCommit
(
commit
:
RevCommit
)
:
DiffEntry.ChangeType
?
push
Repository
Link copied to clipboard
fun
pushRepository
(
)