You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: harvest.m
    path of file: ./repos/spm12/matlabbatch/@cfg_exbranch
    
    the code of the file until where you have to start completion: function [tag, val, typ, dep, chk, cj] = harvest(item, cj, dflag, rflag)

% function [tag, val, typ, dep, chk, cj] = harvest(item, cj, dflag, rflag)
% harvest function for cfg_exbranch
% item  - cfg_exbranch to harvest

    
function [tag, val, typ, dep, chk, cj] = harvest(item, cj, dflag, rflag)

% function [tag, val, typ, dep, chk, cj] = harvest(item, cj, dflag, rflag)
% harvest function for cfg_exbranch
% item  - cfg_exbranch to harvest
% dflag - part of tree to harvest (false for filled cfg_item(s), true for
%         default values
% cj    - job tree
% 0) harvest this branch
% if something has changed
% 1) remove target references from source depend