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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user