summaryrefslogtreecommitdiff
path: root/t/t7500/edit-content
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2013-12-12 07:01:42 +0800
committerJunio C Hamano <gitster@pobox.com>2013-12-12 11:27:21 -0800
commit370c9268d13ef54a05ed84b92baa81b75930e58f (patch)
treef831f09836d4b26fd3dbfbabb54f1385d2bff04e /t/t7500/edit-content
parentd2446dfd7f3b3f8948142cfb07a0270e2497d93f (diff)
downloadgit-370c9268d13ef54a05ed84b92baa81b75930e58f.tar.gz
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 't/t7500/edit-content')
0 files changed, 0 insertions, 0 deletions