* Safe way to remove .temp objects?
@ 2006-01-26 9:35 Erik Mouw
2006-01-26 11:18 ` Andreas Ericsson
0 siblings, 1 reply; 4+ messages in thread
From: Erik Mouw @ 2006-01-26 9:35 UTC (permalink / raw)
To: git
Hi,
After a git repack, git count-objects reports there are still 20
objects in the repository. It looks like those are temp objects:
erik@arthur:~/git/linux-2.6 > ls .git/objects/??/
.git/objects/14/:
d6545767f5103b5ef4702bc8fffa18dbe32ce1.temp
.git/objects/1a/:
d37b580be4215f1b0927b7560f5e8b8d1bc0fa.temp
[...]
Is there a git command to remove those objects in a safe way, or can I
just rm them without "harming" git??
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
| Data lost? Stay calm and contact Harddisk-recovery.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Safe way to remove .temp objects?
2006-01-26 9:35 Safe way to remove .temp objects? Erik Mouw
@ 2006-01-26 11:18 ` Andreas Ericsson
2006-01-26 12:24 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Ericsson @ 2006-01-26 11:18 UTC (permalink / raw)
To: Erik Mouw; +Cc: git
Erik Mouw wrote:
> Hi,
>
> After a git repack, git count-objects reports there are still 20
> objects in the repository. It looks like those are temp objects:
>
> erik@arthur:~/git/linux-2.6 > ls .git/objects/??/
> .git/objects/14/:
> d6545767f5103b5ef4702bc8fffa18dbe32ce1.temp
>
> .git/objects/1a/:
> d37b580be4215f1b0927b7560f5e8b8d1bc0fa.temp
>
> [...]
>
> Is there a git command to remove those objects in a safe way, or can I
> just rm them without "harming" git??
>
>
$ git prune-packed
When you repack, you can run
$ git repack -d
to remove loose objects when you're done packing.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Safe way to remove .temp objects?
2006-01-26 11:18 ` Andreas Ericsson
@ 2006-01-26 12:24 ` Junio C Hamano
2006-01-27 10:14 ` Erik Mouw
0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2006-01-26 12:24 UTC (permalink / raw)
To: Andreas Ericsson; +Cc: git, Erik Mouw
Andreas Ericsson <ae@op5.se> writes:
> Erik Mouw wrote:
>> Hi,
>> After a git repack, git count-objects reports there are still 20
>> objects in the repository. It looks like those are temp objects:
>> erik@arthur:~/git/linux-2.6 > ls .git/objects/??/
>> .git/objects/14/:
>> d6545767f5103b5ef4702bc8fffa18dbe32ce1.temp
>> .git/objects/1a/:
>> d37b580be4215f1b0927b7560f5e8b8d1bc0fa.temp
>> [...]
>> Is there a git command to remove those objects in a safe way, or can
>> I
>> just rm them without "harming" git??
>>
>
> $ git prune-packed
>
> When you repack, you can run
>
> $ git repack -d
>
> to remove loose objects when you're done packing.
What is being asked is not about loose objects but droppings
commit walkers make when interrupted.
I think *.temp files are garbage and you can safely remove
them. They are not even correct objects.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Safe way to remove .temp objects?
2006-01-26 12:24 ` Junio C Hamano
@ 2006-01-27 10:14 ` Erik Mouw
0 siblings, 0 replies; 4+ messages in thread
From: Erik Mouw @ 2006-01-27 10:14 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Andreas Ericsson, git
On Thu, Jan 26, 2006 at 04:24:06AM -0800, Junio C Hamano wrote:
> What is being asked is not about loose objects but droppings
> commit walkers make when interrupted.
That's indeed what I meant.
> I think *.temp files are garbage and you can safely remove
> them. They are not even correct objects.
It looks like it was safe to remove, all git commands I tried just
work.
Thanks,
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-01-27 10:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-26 9:35 Safe way to remove .temp objects? Erik Mouw
2006-01-26 11:18 ` Andreas Ericsson
2006-01-26 12:24 ` Junio C Hamano
2006-01-27 10:14 ` Erik Mouw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).