# Do moves add to repository size?

4 messages from 2008-12-31 to 2008-12-31. Participants: Simon Chiang, demerphq, Alex Riesen.
Thread: https://gitlist.dev/t/16942

## Simon Chiang, 2008-12-31 09:11

Subject: Do moves add to repository size?
Message-ID: <85fafb0c0812310111s552247em5f0ca57b737aedc3@mail.gmail.com>
URL: https://gitlist.dev/e/85fafb0c0812310111s552247em5f0ca57b737aedc3%40mail.gmail.com

```
Hey, I'm quite curious to know if moves/renames duplicate the file
content in the repository (and hence grow the repository size) or if
they just change the location of the content.  I want to drastically
reorganize a repository and I'm wondering if will double it in size.

Thanks,

- Simon

```

## demerphq, 2008-12-31 09:46

Subject: Re: Do moves add to repository size?
Message-ID: <9b18b3110812310146r48a15907q2bf88d81b6bf4e0f@mail.gmail.com>
URL: https://gitlist.dev/e/9b18b3110812310146r48a15907q2bf88d81b6bf4e0f%40mail.gmail.com
In-Reply-To: <85fafb0c0812310111s552247em5f0ca57b737aedc3@mail.gmail.com>

```
2008/12/31 Simon Chiang <simon.a.chiang@gmail.com>:
> Hey, I'm quite curious to know if moves/renames duplicate the file
> content in the repository (and hence grow the repository size) or if
> they just change the location of the content.  I want to drastically
> reorganize a repository and I'm wondering if will double it in size.

No it wont. Git uses a content addressable storage. And since in a
rename the content doesnt change....

Yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

```

## Alex Riesen, 2008-12-31 15:17

Subject: Re: Do moves add to repository size?
Message-ID: <81b0412b0812310717w341f05b5qeb058ff1c2db19d2@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0812310717w341f05b5qeb058ff1c2db19d2%40mail.gmail.com
In-Reply-To: <85fafb0c0812310111s552247em5f0ca57b737aedc3@mail.gmail.com>

```
2008/12/31 Simon Chiang <simon.a.chiang@gmail.com>:
> Hey, I'm quite curious to know if moves/renames duplicate the file
> content in the repository (and hence grow the repository size) or if
> they just change the location of the content.  I want to drastically
> reorganize a repository and I'm wondering if will double it in size.

It wont double its size, but it will grow a little: the tree objects
which contain names of the data (the file names) will be all changed.

```

## Simon Chiang, 2008-12-31 15:53

Subject: Re: Do moves add to repository size?
Message-ID: <85fafb0c0812310753p6c112bd3q37ac772b5b82c05d@mail.gmail.com>
URL: https://gitlist.dev/e/85fafb0c0812310753p6c112bd3q37ac772b5b82c05d%40mail.gmail.com
In-Reply-To: <81b0412b0812310717w341f05b5qeb058ff1c2db19d2@mail.gmail.com>

```
Great thanks!  I suspected that was the case.

```
