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:
Joe Tretter
2026-05-02 23:08:19 -05:00
parent 4963123b3b
commit c3c672eb27
2 changed files with 26 additions and 2 deletions

View File

@@ -19,8 +19,8 @@ android {
applicationId = "solutions.tretter.githugandroid"
minSdk = 26
targetSdk = 35
versionCode = 108
versionName = "0.1.107"
versionCode = 109
versionName = "0.1.108"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true

View File

@@ -90,6 +90,10 @@ class GitRepositoryRuntime(private val context: Context) {
}
fun gitManPage(level: Level, currentRepo: RepoState, topic: String): String {
if (topic == "ignore") {
return fallbackManPage(topic)
}
val nativeGit = nativeGitBinary()
if (nativeGit == null) {
return fallbackManPage(topic)
@@ -317,6 +321,26 @@ class GitRepositoryRuntime(private val context: Context) {
git commit -m <message>
git commit --amend
""".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 -> """
NAME
git-$topic