X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.h;h=10e2b5d4cfdc7ac129ead711421ccc51d2667f02;hb=9e7bd0110b41f9bb16377e322300629f8c4d6c12;hp=4ed0c1cf7f5fdf235a2668d60e8250745e723b7d;hpb=23c17d4a4a0e1fc9a5fa347f1fc6be3cf477e543;p=git.git diff --git a/commit.h b/commit.h index 4ed0c1cf7..10e2b5d4c 100644 --- a/commit.h +++ b/commit.h @@ -113,8 +113,12 @@ extern struct commit_list *get_shallow_commits(struct object_array *heads, int in_merge_bases(struct commit *, struct commit **, int); -extern int interactive_add(void); -extern void add_files_to_cache(int verbose, const char *prefix, const char **files); +extern int interactive_add(int argc, const char **argv, const char *prefix); extern int rerere(void); +static inline int single_parent(struct commit *commit) +{ + return commit->parents && !commit->parents->next; +} + #endif /* COMMIT_H */