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
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jun 19, 2013, 05:40 UTC
Message-ID
<vpqsj0emzdu.fsf@anie.imag.fr>
In-Reply-To
<CACuz9s2KEne5_PwHwmsd1X7iE=GB3pC=iUzxSo=t6TbF+ZjCxA@mail.gmail.com>
Alexander Nestorov <alexandernst@gmail.com> writes:
> How about that:
>
> +Reset only files who's content changed (instead of mtime modification)::

Much better, yes. I'd say "stat information" instead of mtime (that's what used in the description of update-index --refresh, and is a bit more accurate since Git also checks the inode number IIRC).

Show 6 quoted lines
> +------------
> +$ git update-index --refresh               <1>
> +$ git reset --hard                         <2>
> +------------
> ++
> +<1> Make git realize which files actually changed instead of

s/git/Git/ when talking about "The Git system" (as opposed to "The git command"). git-gui or other Git clients would also see the index change.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Alexander NestorovNext: Alexander Nestorov
Message 11 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.