diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2007-05-04 23:54:57 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-05-06 00:07:07 -0700 |
commit | cc0e6c5adc783bcb29954f3a0b7a6197bcc9b1b3 (patch) | |
tree | ec7435061df15e0a6cc131fdce93ca813dab37f7 /revision.h | |
parent | 86b9e017e485a4e56fb8f096cb9094c415483118 (diff) | |
download | git-cc0e6c5adc783bcb29954f3a0b7a6197bcc9b1b3.tar.gz |
Handle return code of parse_commit in revision machinery
This fixes a crash in broken repositories where random commits
suddenly disappear.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'revision.h')
-rw-r--r-- | revision.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.h b/revision.h index cdf94ad695..2845167746 100644 --- a/revision.h +++ b/revision.h @@ -113,7 +113,7 @@ extern void init_revisions(struct rev_info *revs, const char *prefix); extern int setup_revisions(int argc, const char **argv, struct rev_info *revs, const char *def); extern int handle_revision_arg(const char *arg, struct rev_info *revs,int flags,int cant_be_filename); -extern void prepare_revision_walk(struct rev_info *revs); +extern int prepare_revision_walk(struct rev_info *revs); extern struct commit *get_revision(struct rev_info *revs); extern void mark_parents_uninteresting(struct commit *commit); |