setup_revisions(): Allow walking history in a submodule

By passing the path to a submodule in opt->submodule, the function can
be used to walk history in the named submodule repository, instead of
the toplevel repository.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Heiko Voigt
2010-07-07 15:39:12 +02:00
committed by Junio C Hamano
parent 0bad611b1e
commit 9ef6aeb09f
4 changed files with 58 additions and 14 deletions

View File

@ -151,6 +151,7 @@ extern volatile show_early_output_fn_t show_early_output;
struct setup_revision_opt {
const char *def;
void (*tweak)(struct rev_info *, struct setup_revision_opt *);
const char *submodule;
};
extern void init_revisions(struct rev_info *revs, const char *prefix);