diff options
author | Jake Goulding <goulding@vivisimo.com> | 2009-01-26 15:13:24 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-28 20:33:03 +0100 |
commit | 7fcdb36e29f9a5e779bc9e44cd69f8f69fac9426 (patch) | |
tree | 0174c7c8187f04c75aa936211ca73ff44346881e /commit.h | |
parent | Make opt_parse_with_commit() non-static (diff) | |
download | git-7fcdb36e29f9a5e779bc9e44cd69f8f69fac9426.tar.xz git-7fcdb36e29f9a5e779bc9e44cd69f8f69fac9426.zip |
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); |