prepare_revision_walk(): check for return value in all places
commit81c3ce3cdce8dffb913243f5b2cc09d9fb966e6c
authorStefan Beller <stefanbeller@gmail.com>
Sun, 10 Aug 2014 21:33:26 +0000 (10 23:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Aug 2014 18:00:33 +0000 (12 11:00 -0700)
tree974a155e73dec708825519c9f21a44d678bc86ed
parent32f56600bb6ac6fc57183e79d2c1515dfa56672f
prepare_revision_walk(): check for return value in all places

Even the documentation tells us:

You should check if it returns any error (non-zero return
code) and if it does not, you can start using get_revision()
to do the iteration.

In preparation for this commit, I grepped all occurrences of
prepare_revision_walk and added error messages, when there were none.

Signed-off-by: Stefan Beller <stefanbeller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
builtin/commit.c
remote.c