summaryrefslogtreecommitdiff
path: root/revision.h
diff options
context:
space:
mode:
authorHeiko Voigt <hvoigt@hvoigt.net>2010-07-07 15:39:12 +0200
committerJunio C Hamano <gitster@pobox.com>2010-07-07 09:48:33 -0700
commit9ef6aeb09ffe0650ca86dca53de93fd85333b02d (patch)
treec3450951b7d3eb0d0bee8ff77229a98255bb4d34 /revision.h
parent0bad611b1ebacf170976a10690bd0169f8d372bf (diff)
downloadgit-9ef6aeb09ffe0650ca86dca53de93fd85333b02d.tar.gz
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>
Diffstat (limited to 'revision.h')
-rw-r--r--revision.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/revision.h b/revision.h
index 36fdf22b29..05659c64ac 100644
--- a/revision.h
+++ b/revision.h
@@ -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);