diff options
author | Jake Goulding <goulding@vivisimo.com> | 2009-01-26 09:13:24 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-28 11:33:03 -0800 |
commit | 7fcdb36e29f9a5e779bc9e44cd69f8f69fac9426 (patch) | |
tree | 0174c7c8187f04c75aa936211ca73ff44346881e /commit.h | |
parent | 269defdf30a4beb48f230e36f20d00ee40348ab6 (diff) | |
download | git-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |