From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org
Subject: Re: [BUG?] bulk checkin does not respect filters
Date: Thu, 23 Feb 2012 19:42:11 -0800 [thread overview]
Message-ID: <7vr4xk28z0.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <7vvcmw2a3m.fsf@alter.siamese.dyndns.org> (Junio C. Hamano's message of "Thu, 23 Feb 2012 19:17:49 -0800")
Junio C Hamano <gitster@pobox.com> writes:
> Jeff King <peff@peff.net> writes:
>
>> Thoughts? Was this intentional, or just overlooked?
It is a bit curious that anything filtered even goes to the streaming
codepath, given this piece of code in write_entry() in entry.c:
if (ce_mode_s_ifmt == S_IFREG) {
struct stream_filter *filter = get_stream_filter(path, ce->sha1);
if (filter &&
!streaming_write_entry(ce, path, filter,
state, to_tempfile,
&fstat_done, &st))
goto finish;
}
and get_stream_filter() in convert.c has an explicit exception for this
case at the very beginning:
struct stream_filter *get_stream_filter(const char *path, const unsigned char *sha1)
{
struct conv_attrs ca;
enum crlf_action crlf_action;
struct stream_filter *filter = NULL;
convert_attrs(&ca, path);
if (ca.drv && (ca.drv->smudge || ca.drv->clean))
return filter;
to make sure that it says "No streaming filtering is possible, do not even
attempt to call streaming_write_entry()".
next prev parent reply other threads:[~2012-02-24 3:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-24 3:02 [BUG?] bulk checkin does not respect filters Jeff King
2012-02-24 3:17 ` Junio C Hamano
2012-02-24 3:42 ` Junio C Hamano [this message]
2012-02-24 7:54 ` Jeff King
2012-02-24 18:48 ` Junio C Hamano
2012-02-24 8:28 ` Jeff King
2012-02-24 9:39 ` Jeff King
2012-02-24 9:41 ` [PATCH 1/2] teach convert_to_git a "dry run" mode Jeff King
2012-02-24 9:48 ` [PATCH 2/2] do not stream large files to pack when filters are in use Jeff King
2012-02-24 20:03 ` Junio C Hamano
2012-02-24 20:48 ` Jeff King
2012-02-24 21:01 ` Jeff King
2012-02-24 21:20 ` Junio C Hamano
2012-02-24 21:19 ` Jeff King
2012-02-24 22:02 ` [PATCHv2 1/3] teach convert_to_git a "dry run" mode Jeff King
2012-02-24 22:05 ` [PATCHv2 2/3] teach dry-run convert_to_git not to require a src buffer Jeff King
2012-02-24 22:10 ` [PATCHv2 3/3] do not stream large files to pack when filters are in use Jeff King
2012-02-24 22:42 ` [PATCH 2/2] " Junio C Hamano
2012-02-24 20:03 ` [BUG?] bulk checkin does not respect filters Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vr4xk28z0.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).