From: Elijah Newren <newren@gmail.com>
To: Wes Hurd <13hurdw@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [Bug] git diff assumes executable permissions change is always 0755
Date: Fri, 22 Nov 2019 12:08:47 -0800 [thread overview]
Message-ID: <CABPp-BHb7z4PnyWu9YOiJv8jLEQnvmAHQmFq2=d=m1njtdDwug@mail.gmail.com> (raw)
In-Reply-To: <CAOAGZwFScnS=FSfe9WiJ2h5W1-NCtxU4HM4FUH9LwtcCRuimcg@mail.gmail.com>
On Fri, Nov 22, 2019 at 11:50 AM Wes Hurd <13hurdw@gmail.com> wrote:
>
> git 2.24.0
> macOS 10.14.6
>
> To reproduce:
> - Start a file, commit in git
> - chmod 0744 file.txt
> - git diff
> - ls -l file.txt
>
> git diff reports :
> old mode 100644
> new mode 100755
>
> expected:
> git lists actual permissions of file
> new mode 100744
> File's permissions are 0744 (-rwxr--r--)
Thanks for the report, but this isn't a bug. See the final paragraph
of https://git-scm.com/docs/user-manual#tree-object. (Said another
way, git doesn't track full permisions of files nor ACLs nor
creation/modification/access times, or other filesystem-specific data.
It's reporting to you the data as recorded in git which for normal
files will be either 100644 or 100755.)
next prev parent reply other threads:[~2019-11-22 20:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-22 19:47 [Bug] git diff assumes executable permissions change is always 0755 Wes Hurd
2019-11-22 20:08 ` Elijah Newren [this message]
2019-11-22 20:11 ` Denton Liu
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='CABPp-BHb7z4PnyWu9YOiJv8jLEQnvmAHQmFq2=d=m1njtdDwug@mail.gmail.com' \
--to=newren@gmail.com \
--cc=13hurdw@gmail.com \
--cc=git@vger.kernel.org \
/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).