git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Howto get repository up2date after pull with touching as less as possible files in the working directory
@ 2005-05-09 17:49 Thomas Glanzmann
  2005-05-09 18:18 ` Petr Baudis
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Glanzmann @ 2005-05-09 17:49 UTC (permalink / raw
  To: GIT

Hello alltogether,
at the moment I ensrure that there are no dirty files before the pull
and do a

	git-read-tree HEAD
	git-checkout -a -f
	git-update-cache --refresh

this is suboptimal because all the files in my working directory get a
new timestamp and if I call make everything is recompiled (ccache helps,
but is not the solution to this problem).

So what is the right way to touch *only* the files which are dirty. Are
there any shortcuts? Or should I call 'git dirty' pipe that to
git-checkout -f?

	Thomas

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Howto get repository up2date after pull with touching as less as possible files in the working directory
  2005-05-09 17:49 Howto get repository up2date after pull with touching as less as possible files in the working directory Thomas Glanzmann
@ 2005-05-09 18:18 ` Petr Baudis
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Baudis @ 2005-05-09 18:18 UTC (permalink / raw
  To: GIT

Dear diary, on Mon, May 09, 2005 at 07:49:51PM CEST, I got a letter
where Thomas Glanzmann <sithglan@stud.uni-erlangen.de> told me that...
> Hello alltogether,
> at the moment I ensrure that there are no dirty files before the pull
> and do a
> 
> 	git-read-tree HEAD
> 	git-checkout -a -f
> 	git-update-cache --refresh
> 
> this is suboptimal because all the files in my working directory get a
> new timestamp and if I call make everything is recompiled (ccache helps,
> but is not the solution to this problem).

Do git-read-tree -m HEAD instead. That will keep the original stat
information and checkout will rewrite only files it needs to.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-09 18:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-09 17:49 Howto get repository up2date after pull with touching as less as possible files in the working directory Thomas Glanzmann
2005-05-09 18:18 ` Petr Baudis

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).