Re: [Request] Git reset should be able to ignore file permissions
- From
- Alexander Nestorov <alexandernst@gmail.com>
- Date
- Jun 18, 2013, 17:03 UTC
- Message-ID
- <CACuz9s2KEne5_PwHwmsd1X7iE=GB3pC=iUzxSo=t6TbF+ZjCxA@mail.gmail.com>
- In-Reply-To
- <vpqy5a7mmsg.fsf@anie.imag.fr>
How about that:
+Reset only files who's content changed (instead of mtime modification):: ++ +------------ +$ git update-index --refresh <1> +$ git reset --hard <2> +------------ ++ +<1> Make git realize which files actually changed instead of +checking out all files whether their content changed or only +their mtime changed. +<2> Now git reset --hard will checkout only the files that +actually changed.