diff options
author | Jeff King <peff@peff.net> | 2013-12-12 07:01:42 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-12-12 11:27:21 -0800 |
commit | 370c9268d13ef54a05ed84b92baa81b75930e58f (patch) | |
tree | f831f09836d4b26fd3dbfbabb54f1385d2bff04e /Documentation/git-remote-helpers.txto | |
parent | Git 1.8.5 (diff) | |
download | tgif-370c9268d13ef54a05ed84b92baa81b75930e58f.tar.xz |
cat-file: pass expand_data to print_object_or_die
We currently individually pass the sha1, type, and size
fields calculated by sha1_object_info. However, if we pass
the whole struct, the called function can make more
intelligent decisions about which fields were actually
filled by sha1_object_info.
This patch takes that first refactoring step, passing the
whole struct, so further patches can make those decisions
with less noise in their diffs. There should be no
functional change to this patch (aside from a minor typo fix
in the error message).
As a side effect, we can rename the local variables in the
function to "type" and "size", since the names are no longer
taken.
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-remote-helpers.txto')
0 files changed, 0 insertions, 0 deletions