aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/dev/msfjarvis/aps/util/git/GitResult.kt
blob: cd1faa45c296f90bc3f797baffabc05fbf5ca3b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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()
}