git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: Yakup Akbay <yakbay@ubicom.com>
Cc: git@vger.kernel.org
Subject: Re: Confused about `git gc`
Date: Tue, 09 Jun 2009 03:45:40 -0700 (PDT)	[thread overview]
Message-ID: <m3ljo14r61.fsf@localhost.localdomain> (raw)
In-Reply-To: <4A2E1D37.9010909@ubicom.com>

Yakup Akbay <yakbay@ubicom.com> writes:

> Looks like I didn't quite understand the actual role of `git gc`. I
> just thought that `git gc` would remove all unreferenced objects
> during the unpack-pack process. However, I'm not seeing the result
> what I was expecting from `git gc`.
> 
> I'm adding an object into the database, which is ignored by git. Then
> I expect the object to be removed after `git gc`. But, it's still
> there.

[...]
> What am I overlooking?

You are probably overlooking the safety introduced to "git gc" to make
it safer against concurrently run git operations, namely the fact that
it would not remove new loose objects (it would remove loose objects
only when they are old enough).

-- 
Jakub Narebski
Poland
ShadeHawk on #git

  reply	other threads:[~2009-06-09 10:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-09  8:28 Confused about `git gc` Yakup Akbay
2009-06-09 10:45 ` Jakub Narebski [this message]
2009-06-09 11:18   ` Yakup Akbay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3ljo14r61.fsf@localhost.localdomain \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=yakbay@ubicom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).