X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=rev-list.c;h=42fd154fc1a3b9a066a5d7d3ec997355e53f784e;hb=fa9e9c7bc4d6437537a78517f7f6909340e25ad9;hp=1c797d24a91b44994dc11180dd61c3ecf8f93349;hpb=64745109c41a5c4a66b9e3df6bca2fd4abf60d48;p=git.git diff --git a/rev-list.c b/rev-list.c index 1c797d24a..42fd154fc 100644 --- a/rev-list.c +++ b/rev-list.c @@ -7,7 +7,7 @@ int main(int argc, char **argv) struct commit_list *list = NULL; struct commit *commit; - if (argc != 2 || get_sha1_hex(argv[1], sha1)) + if (argc != 2 || get_sha1(argv[1], sha1)) usage("rev-list "); commit = lookup_commit(sha1); @@ -16,7 +16,7 @@ int main(int argc, char **argv) commit_list_insert(commit, &list); do { - struct commit *commit = pop_most_recent_commit(&list); + struct commit *commit = pop_most_recent_commit(&list, 0x1); printf("%s\n", sha1_to_hex(commit->object.sha1)); } while (list); return 0;