|
diff --git a/git.h b/git.h index eca48d5..a1d1c4b 100644 --- a/ git.h+++ b/ git.h |
|
@@ -648,25 +648,52 @@ struct rev_info { |
648 | /* diff info for patches and for paths limiting */ |
648 | /* diff info for patches and for paths limiting */ |
649 | struct diff_options diffopt; |
649 | struct diff_options diffopt; |
650 | struct diff_options pruning; |
650 | struct diff_options pruning; |
651 | |
651 | |
652 | topo_sort_set_fn_t topo_setter; |
652 | topo_sort_set_fn_t topo_setter; |
653 | topo_sort_get_fn_t topo_getter; |
653 | topo_sort_get_fn_t topo_getter; |
654 | }; |
654 | }; |
655 | |
655 | |
656 | |
656 | |
657 | extern void init_revisions(struct rev_info *revs, const char *prefix); |
657 | extern void init_revisions(struct rev_info *revs, const char *prefix); |
658 | extern int setup_revisions(int argc, const char **argv, struct rev_info *revs, const char *def); |
658 | extern int setup_revisions(int argc, const char **argv, struct rev_info *revs, const char *def); |
659 | extern int handle_revision_arg(const char *arg, struct rev_info *revs,int flags,int cant_be_filename); |
659 | extern int handle_revision_arg(const char *arg, struct rev_info *revs,int flags,int cant_be_filename); |
660 | |
660 | |
661 | extern void prepare_revision_walk(struct rev_info *revs); |
661 | extern void prepare_revision_walk(struct rev_info *revs); |
662 | extern struct commit *get_revision(struct rev_info *revs); |
662 | extern struct commit *get_revision(struct rev_info *revs); |
663 | |
663 | |
664 | |
664 | |
665 | |
665 | |
666 | /* from git:log-tree.h */ |
666 | /* from git:log-tree.h */ |
667 | |
667 | |
668 | int log_tree_commit(struct rev_info *, struct commit *); |
668 | int log_tree_commit(struct rev_info *, struct commit *); |
669 | |
669 | |
670 | |
670 | |
671 | |
671 | |
| |
672 | /* from git:archive.h */ |
| |
673 | |
| |
674 | struct archiver_args { |
| |
675 | const char *base; |
| |
676 | struct tree *tree; |
| |
677 | const unsigned char *commit_sha1; |
| |
678 | time_t time; |
| |
679 | const char **pathspec; |
| |
680 | unsigned int verbose : 1; |
| |
681 | void *extra; |
| |
682 | }; |
| |
683 | |
| |
684 | typedef int (*write_archive_fn_t)(struct archiver_args *); |
| |
685 | |
| |
686 | typedef void *(*parse_extra_args_fn_t)(int argc, const char **argv); |
| |
687 | |
| |
688 | struct archiver { |
| |
689 | const char *name; |
| |
690 | struct archiver_args args; |
| |
691 | write_archive_fn_t write_archive; |
| |
692 | parse_extra_args_fn_t parse_extra; |
| |
693 | }; |
| |
694 | |
| |
695 | extern int write_tar_archive(struct archiver_args *); |
| |
696 | extern int write_zip_archive(struct archiver_args *); |
| |
697 | extern void *parse_extra_zip_args(int argc, const char **argv); |
| |
698 | |
672 | #endif /* GIT_H */ |
699 | #endif /* GIT_H */ |
|