diff --git a/rev-list.c b/rev-list.c
index 1c797d24a91b44994dc11180dd61c3ecf8f93349..42fd154fc1a3b9a066a5d7d3ec997355e53f784e 100644 (file)
--- a/rev-list.c
+++ b/rev-list.c
struct commit_list *list = NULL;
struct commit *commit;
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-id>");
commit = lookup_commit(sha1);
usage("rev-list <commit-id>");
commit = lookup_commit(sha1);
commit_list_insert(commit, &list);
do {
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;
printf("%s\n", sha1_to_hex(commit->object.sha1));
} while (list);
return 0;