From: Nguyen Thai Ngoc Duy Date: Thu, 01 Dec 2011 08:05:21 GMT Subject: Re: [PATCH v2 5/5] bulk-checkin: replace fast-import based implementation Message-ID: In-Reply-To: <1322699263-14475-6-git-send-email-gitster@pobox.com> On Thu, Dec 1, 2011 at 7:27 AM, Junio C Hamano wrote: > @@ -458,11 +459,15 @@ int cmd_add(int argc, const char **argv, const char *prefix) >                free(seen); >        } > > +       plug_bulk_checkin(); > + >        exit_status |= add_files_to_cache(prefix, pathspec, flags); > >        if (add_new_files) >                exit_status |= add_files(&dir, flags); > > +       unplug_bulk_checkin(); > + >  finish: >        if (active_cache_changed) { >                if (write_cache(newfd, active_cache, active_nr) || Also do the same for git-commit, except as-is commit case, for updating large files? update-index should also learn about this, although at plumbing level, maybe we could have an option to let users choose what to stream (i.e. skip size check for streaming). -- Duy