Re: [PATCH v2 5/5] bulk-checkin: replace fast-import based implementation
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Dec 1, 2011, 08:05 UTC
- Message-ID
- <CACsJy8D5BqqkXCa7kczcNBxjt=G2d2ZXUToncR2pBGRuZ3gPKg@mail.gmail.com>
- In-Reply-To
- <1322699263-14475-6-git-send-email-gitster@pobox.com>
On Thu, Dec 1, 2011 at 7:27 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 16 quoted lines
> @@ -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