It seems that git stash pop
gives every file it lays down a current timestamp. Can this be avoided? I want the re-applied files to have their original timestamps, at least for files that weren't changed since they were stashed.
CodePudding user response:
I doubt that this has anything to do with stash
. No "timestamps" are being stored; it's just that certain acts that you perform with Git create files. You can get the same effect by switching to another branch, then immediately switching back to the first branch. All the files in your working tree that are under Git control will have their dates set to now, because Git just "created" them — that's what switching to a branch means.