[PATCH] git object store: make it possible to work with checked-out git branches

Linus Torvalds torvalds at linux-foundation.org
Wed Mar 19 13:53:01 PDT 2014


On Wed, Mar 19, 2014 at 1:41 PM, Linus Torvalds
<torvalds at linux-foundation.org> wrote:
>
> +static int notify_cb(git_checkout_notify_t why,
> +       const char *path,
> +       const git_diff_file *baseline,
> +       const git_diff_file *target,
> +       const git_diff_file *workdir,
> +       void *payload)
> +{
> +fprintf(stderr, "%d %s\n", why, path);
> +       report_error("File '%s' does not match in working tree", path);
> +       return 0; /* Continue with checkout */
> +}

Oh damn, I committed this with the debug printf in place (which the
added showError() calls obviously made redundant).

Please edit the patch to remove that "fprintf(stderr...);" line before
applying it.

Not that it will really hurt anything, but it's not like it is helpful either.

                Linus


More information about the subsurface mailing list