Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/commit-h-single-parent-cleanup' into next
author
Junio C Hamano
<gitster@pobox.com>
Tue, 22 Aug 2017 17:37:00 +0000
(10:37 -0700)
committer
Junio 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()
commit.h
patch
|
blob
|
history
raw
(from parent 1:
0b02269
)
diff --git
a/commit.h
b/commit.h
index baecc0a78f67dfeef107d1bb58870b5f0d23a551..6d769590f285e534d20bfd8108e8e980253f8815 100644
(file)
--- a/
commit.h
+++ b/
commit.h
@@
-313,11
+313,6
@@
extern int interactive_add(int argc, const char **argv, const char *prefix, int
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 {