From: Anders Melchiorsen <anders@kalibalik.dk>
To: Junio C Hamano <gitster@pobox.com>
Cc: Jeff King <peff@peff.net>, git@vger.kernel.org
Subject: Re: --diff-filter=T does not list x changes
Date: Fri, 17 Oct 2008 21:33:54 +0200 [thread overview]
Message-ID: <87wsg7m2xp.fsf@kalibalik.dk> (raw)
In-Reply-To: <7v1vyfoca2.fsf@gitster.siamese.dyndns.org> (Junio C. Hamano's message of "Fri\, 17 Oct 2008 01\:29\:09 -0700")
Junio C Hamano <gitster@pobox.com> writes:
> Anders Melchiorsen <mail@cup.kalibalik.dk> writes:
>
>> I hope you agree that this reading is not obvious from the
>> documentation,...
>
> Yup, didn't I already say that the documentation is buggy?
Possibly, though not in this thread.
>> How about adding a diff-filter=X for the executable bit?
>
> I do not think it is a good idea for two reasons. Backward
> compatibility and sane design.
>
> For one thing, "diff --name-status" never shows X, so you would
> introduce an unnecessary inconsistency. If you change
> "--name-status" to avoid that, you would be breaking people's
> existing scripts that expect to see "M" for such a change.
(I noticed that X is already used in diff-filter, but will keep it for
this discussion)
I was thinking that X could be a subset of M. So only if you
specifically ask for diff-filter=X (and not M) would you get this new
functionality. That should keep it compatible. It would then pick
files that have had their x flipped, regardless of their change in
content. With diff-filter=M, it would work as it does today.
If name-status output must be consistent, it could even output M for
these changes. That would still be unambiguous (but probably confusing).
...
As you say that this is an unnecessary inconsistency, I wonder whether
you have a different way to pick out the commits that toggle the x
bit? That is a problem that I am facing, with no solution shown so far ...
Anders.
next prev parent reply other threads:[~2008-10-17 19:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-15 18:42 --diff-filter=T does not list x changes Anders Melchiorsen
2008-10-16 10:22 ` Jeff King
2008-10-17 2:00 ` Junio C Hamano
2008-10-17 7:08 ` Anders Melchiorsen
2008-10-17 8:29 ` Junio C Hamano
2008-10-17 19:33 ` Anders Melchiorsen [this message]
2008-10-17 23:58 ` Junio C Hamano
2008-10-18 8:49 ` [PATCH] Documentation: diff-filter=T only tests for symlink changes Anders Melchiorsen
2008-10-18 13:40 ` Nanako Shiraishi
2008-10-18 18:37 ` Junio C Hamano
2008-10-18 18:08 ` Junio C Hamano
2008-10-19 1:04 ` Nanako Shiraishi
2008-10-19 10:29 ` Anders Melchiorsen
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=87wsg7m2xp.fsf@kalibalik.dk \
--to=anders@kalibalik.dk \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.