aboutsummaryrefslogtreecommitdiff
path: root/revision.h
diff options
context:
space:
mode:
authorAdam Brewster <adambrewster@gmail.com>2008-07-05 17:26:39 -0400
committerJunio C Hamano <gitster@pobox.com>2008-07-05 17:30:58 -0700
commit1fc561d169ac08c411e34a4439894c5201b3d080 (patch)
tree9836dceaa29f8f504fc48cd6ef1ca3809183b9e8 /revision.h
parent6e1c23442a0315ad440bb8457703dcf1ad943b96 (diff)
downloadgit-1fc561d169ac08c411e34a4439894c5201b3d080.tar.gz
git-1fc561d169ac08c411e34a4439894c5201b3d080.tar.xz
Move read_revisions_from_stdin from builtin-rev-list.c to revision.c
Reading rev-list parameters from the command line can be reused by commands other than rev-list. Move this function to more "library-ish" place to promote code reuse. Signed-off-by: Adam Brewster <asb@bu.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.h')
-rw-r--r--revision.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/revision.h b/revision.h
index abce5001f..83f364ace 100644
--- a/revision.h
+++ b/revision.h
@@ -111,6 +111,8 @@ struct rev_info {
#define REV_TREE_DIFFERENT 2
/* revision.c */
+void read_revisions_from_stdin(struct rev_info *revs);
+
typedef void (*show_early_output_fn_t)(struct rev_info *, struct commit_list *);
volatile show_early_output_fn_t show_early_output;