Remove git-status from list of scripts as it is builtin
[gitweb.git] / commit.h
index 4ed0c1cf7f5fdf235a2668d60e8250745e723b7d..f450aae8aa38cfc96bce8a55e418a090c44c216d 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -114,7 +114,11 @@ 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 rerere(void);
 
+static inline int single_parent(struct commit *commit)
+{
+       return commit->parents && !commit->parents->next;
+}
+
 #endif /* COMMIT_H */