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

Re: Git "Keeping Original Dates"

From
HSHector Santos <winserver.support@winserver.com>
Date
Jun 5, 2017, 23:36 UTC
Message-ID
<5935EB1A.5010100@winserver.com>
In-Reply-To
<CACBZZX7VpmEjbzwGd+S15xVLRrkYRxqcf0LUKF1B7pAsd7Lr4w@mail.gmail.com>
On 6/5/2017 6:06 PM, Ævar Arnfjörð Bjarmason wrote:
Show 41 quoted lines
> On Mon, Jun 5, 2017 at 11:25 PM, Jason Pyeron <jpyeron@pdinc.us> wrote:
>>> -----Original Message-----
>>> From: Hector Santos
>>> Sent: Monday, June 5, 2017 5:14 PM
>>>
>>> I'm implementing GIT.  If there an option or compile/version that "keep"
>> file timestamps?
>>
>> That is not in the tree data structure, see below.
>>
>> root@blackfat /projects/tipsoftheday
>> $ git cat-file -p head
>> tree 4ca3c2a853c8e817d7de8563c331899cace8ee85
>> parent 2a33f293df6df0d3978612e41fb1ecd52e2450a5
>> author Jason Pyeron <jpyeron@pdinc.us> 1496424815 -0400
>> committer Jason Pyeron <jpyeron@pdinc.us> 1496424815 -0400
>>
>> add JDK to CM
>>
>> root@blackfat /projects/tipsoftheday
>> $ git cat-file -p 4ca3c2a853c8e817d7de8563c331899cace8ee85
>> 040000 tree 76094b81b3877b5b27cd4fe518fa0708af3cefed    admin
>> 040000 tree c66a88871c285e1485f92be0f8fa47185d94d0b3    client
>> 040000 tree 460495af209a580e65b5d0b38132d774ddb283b7    database
>> 040000 tree 264b191b036180039f3fd8c5d56c2b6800cb2ca2    doc
>> 040000 tree dd128195971f7bafa56371aa6027d7c6bc80f351    middleware
>> 040000 tree 7861fd39923950d501d4e39aeac4762f7daaca6b    reports
>> 040000 tree 2ad3dedf0313ae775321c88c53741a4b4a7e87b0    tools
>>
>> I wish it was an allowable extension, the date could be between the mode and
>> object type.
> Yes it's not part of the tree structure, but in this case you can
> simply set/update the mtime to the date of the last commit that
> modified the file.
>
> It can be a bit expensive to bootstrap that, and git doesn't help you
> along at all, you need to do it via hooks or some script you run, but
> that's a neat way to shove it into the datamodel if you need this for
> some reason.
>
>

Do you see any technical issues with using programmable hooks or something like this would have to be patched in? I am giving it a serious thought to exploring a fix to the Git Daemon over the wire completion issues on Windows. It appears to be a Half Close socket issue.

-- 
Hector, Engineering & Technical Support
Santronics Software, Inc.
http://www.santronics.com (sales)
http://www.winserver.com (support)
http://www.winserver.com/AupInfo (Online AUP Help)
Office: 305-248-3204



begin:vcard
fn:Hector Santos
n:Santos;Hector
email;internet:winserver.support@winserver.com
tel;work:305-248-3204
version:2.1
end:vcard
Previous: Ævar Arnfjörð BjarmasonNext: Theodore Ts'o
Message 7 of 9 in “Git "Keeping Original Dates"”
  1. Hector SantosJun 5, 2017
  2. Ævar Arnfjörð BjarmasonJun 5, 2017
  3. Jeff KingJun 6, 2017
  4. Hector SantosJun 6, 2017
  5. Jason PyeronJun 5, 2017
  6. Ævar Arnfjörð BjarmasonJun 5, 2017
  7. Hector SantosJun 5, 2017
  8. Theodore Ts'oJun 6, 2017
  9. Konstantin KhomoutovJun 6, 2017

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.