hash-object: reduce file-scope statics
commitb64a98460682366d7533ea251d26026b85bb39cb
authorJunio C Hamano <gitster@pobox.com>
Thu, 11 Sep 2014 19:19:54 +0000 (11 12:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Sep 2014 19:23:42 +0000 (11 12:23 -0700)
treeb3589cb7300f06cebb502dd14f32101fed5a28b7
parentce1d3a93a6405b8a0313491df3099919ed3d150f
hash-object: reduce file-scope statics

Most of the knobs that affect helper functions called from
cmd_hash_object() were passed to them as parameters already, and the
only effect of having them as file-scope statics was to make the
reader wonder if the parameters are hiding the file-scope global
values by accident.  Adjust their initialisation and make them
function-local variables.

The only exception was no_filters hash_stdin_paths() peeked from the
file-scope global, which was converted to a parameter to the helper
function.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/hash-object.c