git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [Request] Git reset should be able to ignore file permissions

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 19, 2013, 18:43 UTC
Message-ID
<7vobb2ym99.fsf@alter.siamese.dyndns.org>
In-Reply-To
<vpqfvwel4bi.fsf@anie.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 17 quoted lines
> Alexander Nestorov <alexandernst@gmail.com> writes:
>
>> Ok, this is how it looks. If everything is ok, I'm sending it to the ML
>
> Please, read Documentation/SubmittingPatches (you lack a sign-off and if
> you think the patch is ready, you should Cc Junio). Also, it's better to
> have the commit headers directly as mail headers (git send-email is your
> friend).
>
>> +Reset only files who's content changed (instead of stat information)::
>
> That's still not 100% accurate. Actual mode changes would trigger a
> rewrite of the file. Perhaps stg like
>
> Reset only files which actually changed (not those with only stat information change)::
>
> (Sorry for nitpicking so much)
I do not think the above clarifies anything to be of much help.

If you _know_ what "actually changed" means, i.e. either contents or the executable-ness changed, then "(not those ...)" does not help you at all.

If you don't, then "only stat information change" will invite "I did chmod -x and the file does not have any actual change." confusion.

If this addition is to help people who do not know what "actually changed" means, that part needs to be clarified, no?

Previous: Matthieu MoyNext: Alexander Nestorov
Message 14 of 18 in “[Request] Git reset should be able to ignore file permissions”
  1. Alexander NestorovJun 18, 2013
  2. Matthieu MoyJun 18, 2013
  3. Alexander NestorovJun 18, 2013
  4. Matthieu MoyJun 18, 2013
  5. Alexander NestorovJun 18, 2013
  6. Matthieu MoyJun 18, 2013
  7. Alexander NestorovJun 18, 2013
  8. Alexander NestorovJun 18, 2013
  9. Matthieu MoyJun 18, 2013
  10. Alexander NestorovJun 18, 2013
  11. Matthieu MoyJun 19, 2013
  12. Alexander NestorovJun 19, 2013
  13. Matthieu MoyJun 19, 2013
  14. Junio C HamanoJun 19, 2013
  15. Alexander NestorovJun 20, 2013
  16. Hilco WijbengaJun 19, 2013
  17. John KeepingJun 18, 2013
  18. Alexander NestorovJun 18, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.