hash-object: pass 'write_object' as a flag
commit17b787f6031d72619e4e2982ea84f47fe161cb30
authorJunio C Hamano <gitster@pobox.com>
Thu, 11 Sep 2014 19:44:05 +0000 (11 12:44 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Sep 2014 19:48:01 +0000 (11 12:48 -0700)
tree86f24e6208a61664ff961572d859c43fb5fed506
parentb64a98460682366d7533ea251d26026b85bb39cb
hash-object: pass 'write_object' as a flag

Instead of forcing callers of lower level functions write
(write_object ? HASH_WRITE_OBJECT : 0), prepare the flag to be
passed down in the callchain from the command line parser.

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