--diff-filter=T does not list x changes

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

--diff-filter=T does not list x changes

From: Anders Melchiorsen <hidden>
Date: 2016-06-15 22:45:29

From documentation, I would expect --diff-filter to list changes in
the execute bit, but it does not. I hear on #git that this is
intended, though I still do not know how to filter on the execute bit.
Is it impossible?


Testcase:

  mkdir t && cd t && git init
  touch a && git add -A && git commit -m1
  chmod +x a && git add -A && git commit -m2
  git log --diff-filter=T        # <--- shows nothing
  rm -f a && ln -s b a && git add -A && git commit -m3
  git log --diff-filter=T


Anders

Re: --diff-filter=T does not list x changes

From: Jeff King <hidden>
Date: 2016-06-15 22:45:29

On Wed, Oct 15, 2008 at 08:42:35PM +0200, Anders Melchiorsen wrote:
From documentation, I would expect --diff-filter to list changes in
the execute bit, but it does not. I hear on #git that this is
intended, though I still do not know how to filter on the execute bit.
Is it impossible?
Looking at the code, I think it's impossible, and one would have to add
a new --diff-filter letter. However, at the very least, the
documentation should clarify this situation. The --diff-filter
explanation says:

  Select only files [...] have their type (mode) changed (T) [...]

which to me indicates that your test case should work. 

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help