RE: Feature Request: Allow to stash push and pop file modification times to avoid rebuilds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, March 21, 2023 4:47 PM, Ridil culous wrote:
>"git stash push"
>later followed by
>"git stash pop"
>does restore files but doesn't restore file modification times.
>
>It would be great if there would be an option to opt in for stashing and restoring the
>file modification times because not restoring them potentially triggers rebuilds for
>many IDEs (MSVC in my case) which can be quite expensive for big projects.

IMHO, this request would break a key bit of compatibility git has with build engines that depend on timestamps. The request would cause the IDE to have false negatives during builds because the files that changed are not recognized as changing. A typical approach to do what you are requesting, where make is involved, is to use the --touch option after the stash pop to bring objects up to date - not a great plan in C++ as you can get into signature mismatches that way. Nonetheless, could you not do something like that in MSVC?

--Randall




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux