summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJake Goulding <goulding@vivisimo.com>2009-01-26 09:13:24 -0500
committerJunio C Hamano <gitster@pobox.com>2009-01-28 11:33:03 -0800
commit7fcdb36e29f9a5e779bc9e44cd69f8f69fac9426 (patch)
tree0174c7c8187f04c75aa936211ca73ff44346881e /commit.h
parent269defdf30a4beb48f230e36f20d00ee40348ab6 (diff)
downloadgit-7fcdb36e29f9a5e779bc9e44cd69f8f69fac9426.tar.gz
Make has_commit() non-static
Move has_commit() from branch to a common location, in preparation for using it in "git-tag". Rename it to is_descendant_of() to make it more unique and descriptive. Signed-off-by: Jake Goulding <goulding@vivisimo.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 3a7b06a828..ba9f63813e 100644
--- a/commit.h
+++ b/commit.h
@@ -133,6 +133,7 @@ extern int is_repository_shallow(void);
extern struct commit_list *get_shallow_commits(struct object_array *heads,
int depth, int shallow_flag, int not_shallow_flag);
+int is_descendant_of(struct commit *, struct commit_list *);
int in_merge_bases(struct commit *, struct commit **, int);
extern int interactive_add(int argc, const char **argv, const char *prefix);