commit: use enum value for multiple cherry-picks
Add FROM_CHERRY_PICK_MULTI for a sequence of cherry-picks rather than using a separate variable. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
21b11c6d1d
commit
8d57f75749
@@ -38,9 +38,16 @@ enum show_ignored_type {
|
||||
enum commit_whence {
|
||||
FROM_COMMIT, /* normal */
|
||||
FROM_MERGE, /* commit came from merge */
|
||||
FROM_CHERRY_PICK /* commit came from cherry-pick */
|
||||
FROM_CHERRY_PICK_SINGLE, /* commit came from cherry-pick */
|
||||
FROM_CHERRY_PICK_MULTI /* commit came from a sequence of cherry-picks */
|
||||
};
|
||||
|
||||
static inline int is_from_cherry_pick(enum commit_whence whence)
|
||||
{
|
||||
return whence == FROM_CHERRY_PICK_SINGLE ||
|
||||
whence == FROM_CHERRY_PICK_MULTI;
|
||||
}
|
||||
|
||||
struct wt_status_change_data {
|
||||
int worktree_status;
|
||||
int index_status;
|
||||
|
||||
Reference in New Issue
Block a user