summaryrefslogtreecommitdiff
path: root/Documentation/git-shell.txt
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2013-12-12 07:01:42 +0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-12-12 11:27:21 -0800
commit370c9268d13ef54a05ed84b92baa81b75930e58f (patch)
treef831f09836d4b26fd3dbfbabb54f1385d2bff04e /Documentation/git-shell.txt
parentGit 1.8.5 (diff)
downloadtgif-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-shell.txt')
0 files changed, 0 insertions, 0 deletions