Auto-commit after successful build: update app gameplay/UI, improve build setup
Changed files:\napp/build.gradle.kts app/src/main/java/solutions/tretter/githugandroid/GitRuntime.kt
This commit is contained in:
@@ -19,8 +19,8 @@ android {
|
|||||||
applicationId = "solutions.tretter.githugandroid"
|
applicationId = "solutions.tretter.githugandroid"
|
||||||
minSdk = 26
|
minSdk = 26
|
||||||
targetSdk = 35
|
targetSdk = 35
|
||||||
versionCode = 108
|
versionCode = 109
|
||||||
versionName = "0.1.107"
|
versionName = "0.1.108"
|
||||||
|
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
|
|||||||
@@ -90,6 +90,10 @@ class GitRepositoryRuntime(private val context: Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun gitManPage(level: Level, currentRepo: RepoState, topic: String): String {
|
fun gitManPage(level: Level, currentRepo: RepoState, topic: String): String {
|
||||||
|
if (topic == "ignore") {
|
||||||
|
return fallbackManPage(topic)
|
||||||
|
}
|
||||||
|
|
||||||
val nativeGit = nativeGitBinary()
|
val nativeGit = nativeGitBinary()
|
||||||
if (nativeGit == null) {
|
if (nativeGit == null) {
|
||||||
return fallbackManPage(topic)
|
return fallbackManPage(topic)
|
||||||
@@ -317,6 +321,26 @@ class GitRepositoryRuntime(private val context: Context) {
|
|||||||
git commit -m <message>
|
git commit -m <message>
|
||||||
git commit --amend
|
git commit --amend
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
|
"ignore" -> """
|
||||||
|
NAME
|
||||||
|
gitignore - Specifies intentionally untracked files to ignore
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
$'GIT_DIR/info/exclude', .gitignore
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
A gitignore file specifies intentionally untracked files
|
||||||
|
that Git should ignore. Each line contains a pattern.
|
||||||
|
|
||||||
|
Blank lines are ignored. Lines beginning with # are comments.
|
||||||
|
An optional ! prefix negates a pattern and re-includes a path.
|
||||||
|
A pattern ending with / matches directories.
|
||||||
|
|
||||||
|
EXAMPLES
|
||||||
|
*.swp
|
||||||
|
*.a
|
||||||
|
!lib.a
|
||||||
|
""".trimIndent()
|
||||||
else -> """
|
else -> """
|
||||||
NAME
|
NAME
|
||||||
git-$topic
|
git-$topic
|
||||||
|
|||||||
Reference in New Issue
Block a user