diff options
Diffstat (limited to 'app/src/main/java/dev/msfjarvis/aps/util/git/GitResult.kt')
| -rw-r--r-- | app/src/main/java/dev/msfjarvis/aps/util/git/GitResult.kt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/src/main/java/dev/msfjarvis/aps/util/git/GitResult.kt b/app/src/main/java/dev/msfjarvis/aps/util/git/GitResult.kt new file mode 100644 index 00000000..cd1faa45 --- /dev/null +++ b/app/src/main/java/dev/msfjarvis/aps/util/git/GitResult.kt @@ -0,0 +1,22 @@ +/* + * Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved. + * SPDX-License-Identifier: GPL-3.0-only + */ + +package dev.msfjarvis.aps.util.git + +/** + * Result of a Git operation executed by [GitCommandExecutor] + */ +sealed class GitResult { + + /** + * All good! + */ + object OK : GitResult() + + /** + * Push operation succeeded and HEAD is already in sync with remote. + */ + object AlreadyUpToDate : GitResult() +} |
