git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git check out file time

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 7, 2010, 13:46 UTC
Message-ID
<m3aaoyo7sz.fsf@localhost.localdomain>
In-Reply-To
<AANLkTinuD8YQ+maWwD3v1C0B4YCOdTS4OsVjHLizga3c@mail.gmail.com>
Tong Sun <suntong001@gmail.com> writes:
Show 10 quoted lines
> Quick Q, is it possible to keep the original file time from the git
> server when checking out / cloning a local repo?
> 
> When I did
> 
>  git clone git://git.remote...
> 
> All my local git files are set to the check out time.
> 
> Please help and CC me when replying.
Only with third-party extra tools such as Metastore (or etckeeper that
uses it), or git-cache-meta (or IsiSetup), see
  https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools

Git itself doesn't store original file time, and with its intended use it would screw up mtime-based make rebuilding.

HTH
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Tong Sun
Message 2 of 2 in “git check out file time”
  1. Tong SunAug 7, 2010
  2. Jakub NarebskiAug 7, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.