# Hard-linked trees with git?

3 messages from 2005-10-18 to 2005-10-19. Participants: Krzysztof Halasa, Junio C Hamano.
Thread: https://gitlist.dev/t/2138

## Krzysztof Halasa, 2005-10-18 20:18

Subject: Hard-linked trees with git?
Message-ID: <m3vezufujo.fsf@defiant.localdomain>
URL: https://gitlist.dev/e/m3vezufujo.fsf%40defiant.localdomain

```
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?
-- 
Krzysztof Halasa

```

## Junio C Hamano, 2005-10-18 20:52

Subject: Re: Hard-linked trees with git?
Message-ID: <7vpsq2pmyl.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vpsq2pmyl.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <m3vezufujo.fsf@defiant.localdomain>

```
Krzysztof Halasa <khc@pm.waw.pl> writes:

> 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'.

```

## Krzysztof Halasa, 2005-10-19 11:23

Subject: Re: Hard-linked trees with git?
Message-ID: <m3irvt21iv.fsf@defiant.localdomain>
URL: https://gitlist.dev/e/m3irvt21iv.fsf%40defiant.localdomain
In-Reply-To: <7vpsq2pmyl.fsf@assigned-by-dhcp.cox.net>

```
Junio C Hamano <junkio@cox.net> writes:

>> 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).
-- 
Krzysztof Halasa

```
