]> git.ipfire.org Git - thirdparty/git.git/blobdiff - wt-status.h
commit: give correct advice for empty commit during a rebase
[thirdparty/git.git] / wt-status.h
index e38e0942dcb9d285685c85f2c0d725c901a4fccb..73ab5d4da1c0b4766cb63501b9db06c0a7fea934 100644 (file)
@@ -39,7 +39,8 @@ enum commit_whence {
        FROM_COMMIT,     /* normal */
        FROM_MERGE,      /* commit came from merge */
        FROM_CHERRY_PICK_SINGLE, /* commit came from cherry-pick */
-       FROM_CHERRY_PICK_MULTI /* commit came from a sequence of cherry-picks */
+       FROM_CHERRY_PICK_MULTI, /* commit came from a sequence of cherry-picks */
+       FROM_REBASE_PICK /* commit came from a pick/reword/edit */
 };
 
 static inline int is_from_cherry_pick(enum commit_whence whence)
@@ -48,6 +49,11 @@ static inline int is_from_cherry_pick(enum commit_whence whence)
                whence == FROM_CHERRY_PICK_MULTI;
 }
 
+static inline int is_from_rebase(enum commit_whence whence)
+{
+       return whence == FROM_REBASE_PICK;
+}
+
 struct wt_status_change_data {
        int worktree_status;
        int index_status;