Marco Costalba <mcostalba@gmail.com> wrote:builtin-rev-list.c. :-) I think all you may need is: #include "revision.h" ... struct rev_info revs; init_revisions(&revs, prefix); revs.abbrev = 0; revs.commit_format = CMIT_FMT_UNSPECIFIED; argc = setup_revisions(argc, argv, &revs, NULL); where argv just a char** of the arguments you were going to hand to rev-list on the command line. then get the data back: static void show_commit(struct commit *commit) { const char * hex = sha1_to_hex(commit->object.sha1); ... copy from hex to your own structures ... } static void show_object(struct object_array_entry *p) { /* do nothing */ } prepare_revision_walk(&revs); traverse_commit_list(&revs, show_commit, show_object); -- Shawn. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Ingo Molnar | Re: containers (was Re: -mm merge plans for 2.6.23) |
| Greg Kroah-Hartman | [PATCH 009/196] Chinese: add translation of sparse.txt |
| holzheu | Re: [RFC/PATCH] Documentation of kernel messages |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| Antonio Almeida | HTB accuracy for high speed |
