prune_remote(): exit early if there are no stale references
commit16d4fa3d9667ca28a519c46c1b1c752a848a693c
authorMichael Haggerty <mhagger@alum.mit.edu>
Tue, 25 Nov 2014 08:02:29 +0000 (25 09:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Nov 2014 18:07:45 +0000 (25 10:07 -0800)
treec2dd0b111e2cdb661ce09962cad2bf4513f5f3cd
parente69b1ce000e6c530ac8bf06470742456277e2a36
prune_remote(): exit early if there are no stale references

Aside from making the logic clearer, this avoids a call to
warn_dangling_symrefs(), which always does a for_each_rawref()
iteration.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c