Skip to contentSkip to conversation

Hard-linked trees with git?

DISCUSSION Krzysztof Halasa 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

Are hard-linked working trees possible with git? Anybody doing that?

Or: is it possible to have some constant file timestamps, so that changing the HEAD to something and returning to the old HEAD (say, with hard resets) restores the old timestamps?

Signature · 1 line
Krzysztof Halasa
#1 lore raw
Quoted 3 lines · Krzysztof Halasa

Or: is it possible to have some constant file timestamps, so that changing the HEAD to something and returning to the old HEAD (say, with hard resets) restores the old timestamps?

That would screw up 'make'.

#2 lore raw
Quoted 5 lines · Junio C Hamano
Quoted 3 lines

Or: is it possible to have some constant file timestamps, so that changing the HEAD to something and returning to the old HEAD (say, with hard resets) restores the old timestamps?

That would screw up 'make'.

Not if the old timestamps matched the old files and if you make sure you don't mix different branches with one object tree (i.e., you always switch to correct HEAD before building).

Signature · 1 line
Krzysztof Halasa