Merge branch 'rs/commit-h-single-parent-cleanup' into next
authorJunio C Hamano <gitster@pobox.com>
Tue, 22 Aug 2017 17:37:00 +0000 (10:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Aug 2017 17:37:00 +0000 (10:37 -0700)
Code clean-up.

* rs/commit-h-single-parent-cleanup:
commit: remove unused inline function single_parent()

1  2 
commit.h
diff --combined commit.h
index baecc0a78f67dfeef107d1bb58870b5f0d23a551,f3805fec6b3a5853316d1476619adc5410224a7e..6d769590f285e534d20bfd8108e8e980253f8815
+++ b/commit.h
@@@ -247,9 -247,9 +247,9 @@@ struct commit_graft 
  };
  typedef int (*each_commit_graft_fn)(const struct commit_graft *, void *);
  
 -struct commit_graft *read_graft_line(char *buf, int len);
 +struct commit_graft *read_graft_line(struct strbuf *line);
  int register_commit_graft(struct commit_graft *, int);
 -struct commit_graft *lookup_commit_graft(const unsigned char *sha1);
 +struct commit_graft *lookup_commit_graft(const struct object_id *oid);
  
  extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *rev2);
  extern struct commit_list *get_merge_bases_many(struct commit *one, int n, struct commit **twos);
@@@ -313,11 -313,6 +313,6 @@@ extern int interactive_add(int argc, co
  extern int run_add_interactive(const char *revision, const char *patch_mode,
                               const struct pathspec *pathspec);
  
- static inline int single_parent(struct commit *commit)
- {
-       return commit->parents && !commit->parents->next;
- }
  struct commit_list *reduce_heads(struct commit_list *heads);
  
  struct commit_extra_header {