{"thread":{"id":"552","subject":"Howto get repository up2date after pull with touching as less as possible files in the working directory","startedAt":"2005-05-09T17:49:51Z","lastAt":"2005-05-09T18:18:42Z","messageCount":2,"participants":["Thomas Glanzmann","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"2895","messageId":"20050509174951.GK24216@cip.informatik.uni-erlangen.de","threadId":"552","inReplyTo":null,"subject":"Howto get repository up2date after pull with touching as less as possible files in the working directory","fromName":"Thomas Glanzmann","fromEmail":"sithglan@stud.uni-erlangen.de","sentAt":"2005-05-09T17:49:51Z","receivedAt":"2005-05-09T17:49:51Z","isPatch":false,"sender":{"key":"sithglan@stud.uni-erlangen.de","avatar":null},"body":"Hello alltogether,\nat the moment I ensrure that there are no dirty files before the pull\nand do a\n\n\tgit-read-tree HEAD\n\tgit-checkout -a -f\n\tgit-update-cache --refresh\n\nthis is suboptimal because all the files in my working directory get a\nnew timestamp and if I call make everything is recompiled (ccache helps,\nbut is not the solution to this problem).\n\nSo what is the right way to touch *only* the files which are dirty. Are\nthere any shortcuts? Or should I call 'git dirty' pipe that to\ngit-checkout -f?\n\n\tThomas\n"},{"id":"2902","messageId":"20050509181842.GA7040@pasky.ji.cz","threadId":"552","inReplyTo":"20050509174951.GK24216@cip.informatik.uni-erlangen.de","subject":"Re: Howto get repository up2date after pull with touching as less as possible files in the working directory","fromName":"Petr Baudis","fromEmail":"pasky@ucw.cz","sentAt":"2005-05-09T18:18:42Z","receivedAt":"2005-05-09T18:18:42Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Mon, May 09, 2005 at 07:49:51PM CEST, I got a letter\nwhere Thomas Glanzmann <sithglan@stud.uni-erlangen.de> told me that...\n> Hello alltogether,\n> at the moment I ensrure that there are no dirty files before the pull\n> and do a\n> \n> \tgit-read-tree HEAD\n> \tgit-checkout -a -f\n> \tgit-update-cache --refresh\n> \n> this is suboptimal because all the files in my working directory get a\n> new timestamp and if I call make everything is recompiled (ccache helps,\n> but is not the solution to this problem).\n\nDo git-read-tree -m HEAD instead. That will keep the original stat\ninformation and checkout will rewrite only files it needs to.\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nC++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor\n"}]}