Re: git and mtime

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Barkalow
Date: Thursday, November 20, 2008 - 10:59 am

On Thu, 20 Nov 2008, Roger Leigh wrote:


Can you store the tarballs in the repository, instead of the contents of 
the tarballs? The tarballs will contain the dates you want, and you can 
obviously get tar to set the timestamps the way you want. (Then you add a 
higher-level Makefile that knows how to unpack the tarball to a directory, 
maintaining the timestamps, patch anything you're changing, and run make 
in that directory.)

That is to say, from your perspective, the sources include the upstream 
distributed tarballs, but the individual files in upstream tarballs aren't 
source files for you, since you can't (by policy) modify them (within the 
pristine tarball). If you want to change the sources of the packaged 
project, you add a patch file to do it, rather than simply changing the 
source (which, as you say, you're required not to do).

Git really wants to store the inputs to your workflow, each of which might
change independently. That's why the files in your work tree have 
timestamps based on when they came to be in your work tree (get set to the 
current time whenever git puts different content there, and leaves them 
unchanged if their contents don't change when moving from commit to 
commit). The "sources" in your workflow are a different set of files from 
the sources in the project, and git really wants *your* repository to 
match *your* workflow and not the workflow of the upstream project, when 
you're acting as a packager rather than an upstream developer.

	-Daniel
*This .sig left intentionally blank*
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git and mtime, Roger Leigh, (Wed Nov 19, 4:37 am)
Re: git and mtime, Matthias Kestenholz, (Wed Nov 19, 5:22 am)
Re: git and mtime, Johannes Schindelin, (Wed Nov 19, 5:31 am)
Re: git and mtime, Arafangion, (Wed Nov 19, 5:37 am)
Re: git and mtime, Jakub Narebski, (Wed Nov 19, 6:29 am)
Re: git and mtime, Matthieu Moy, (Wed Nov 19, 7:54 am)
Re: git and mtime, Christian MICHON, (Wed Nov 19, 9:18 am)
Re: git and mtime, Andreas Ericsson, (Thu Nov 20, 1:38 am)
Re: git and mtime, Andreas Ericsson, (Thu Nov 20, 1:39 am)
Re: git and mtime, Johannes Schindelin, (Thu Nov 20, 3:34 am)
Re: git and mtime, Johannes Schindelin, (Thu Nov 20, 3:35 am)
Re: git and mtime, Matthieu Moy, (Thu Nov 20, 3:53 am)
Re: git and mtime, Roger Leigh, (Thu Nov 20, 4:20 am)
Re: git and mtime, Roger Leigh, (Thu Nov 20, 4:27 am)
Re: git and mtime, Andreas Ericsson, (Thu Nov 20, 5:48 am)
Re: git and mtime, Andreas Ericsson, (Thu Nov 20, 6:06 am)
Re: git and mtime, Randal L. Schwartz, (Thu Nov 20, 6:11 am)
Re: git and mtime, Andreas Ericsson, (Thu Nov 20, 6:12 am)
Re: git and mtime, martin f krafft, (Thu Nov 20, 6:21 am)
Re: git and mtime, Roger Leigh, (Thu Nov 20, 6:35 am)
Re: git and mtime, Roger Leigh, (Thu Nov 20, 6:40 am)
Re: git and mtime, martin f krafft, (Thu Nov 20, 6:59 am)
Re: git and mtime, Johannes Schindelin, (Thu Nov 20, 7:07 am)
Re: git and mtime, Roger Leigh, (Thu Nov 20, 7:15 am)
Re: git and mtime, Roger Leigh, (Thu Nov 20, 7:22 am)
Re: git and mtime, Andreas Ericsson, (Thu Nov 20, 7:50 am)
Re: git and mtime, Roger Leigh, (Thu Nov 20, 8:19 am)
Re: git and mtime, Kyle Moffett, (Thu Nov 20, 8:33 am)
Re: git and mtime, Andreas Ericsson, (Thu Nov 20, 8:37 am)
Re: git and mtime, Samuel Tardieu, (Thu Nov 20, 8:56 am)
Re: git and mtime, Daniel Barkalow, (Thu Nov 20, 10:59 am)
Re: git and mtime, Matthias Kestenholz, (Thu Nov 20, 11:36 am)
Re: git and mtime, Joey Hess, (Thu Nov 20, 12:24 pm)