Git development
 help / color / mirror / Atom feed
* Re: how to squash commits
       [not found]     ` <vpqocv1vr1y.fsf@bauges.imag.fr>
@ 2009-04-12 15:39       ` Teemu Likonen
  2009-04-12 15:54         ` Matthieu Moy
  0 siblings, 1 reply; 2+ messages in thread
From: Teemu Likonen @ 2009-04-12 15:39 UTC (permalink / raw)
  To: Matthieu Moy; +Cc: git, mercurial

Let's add the Git mailing list to the Cc list if someone there wants to
comment. The whole thread is here:

http://thread.gmane.org/gmane.comp.version-control.mercurial.general/13283/focus=13295


On 2009-04-12 17:18 (+0200), Matthieu Moy wrote:

> Teemu Likonen <tlikonen@iki.fi> writes:
>
>> With the default settings user has 30 days to
>> recover the branch's previous state,
>
> Actually, s/30 days/90 days/ according to "man git-gc".

I understand it that objects which are not reachable form the tip of
current branches are subject for garbage-collecting in 30 days. For
example, let's say we are in "master" branch and do "git reset --hard
master~1". It makes the previous HEAD commit unreachable from "master"
branch and it can be GCd in 30 days (?).

My understanding can be wrong, of course. The manual explainst options
like gc.reflogExpire and gc.reflogExpireUnreachable separately but does
not draw the big picture how things work.

http://www.kernel.org/pub/software/scm/git/docs/git-gc.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to squash commits
  2009-04-12 15:39       ` how to squash commits Teemu Likonen
@ 2009-04-12 15:54         ` Matthieu Moy
  0 siblings, 0 replies; 2+ messages in thread
From: Matthieu Moy @ 2009-04-12 15:54 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: git, mercurial

Teemu Likonen <tlikonen@iki.fi> writes:

> Let's add the Git mailing list to the Cc list if someone there wants to
> comment. The whole thread is here:
>
> http://thread.gmane.org/gmane.comp.version-control.mercurial.general/13283/focus=13295
>
>
> On 2009-04-12 17:18 (+0200), Matthieu Moy wrote:
>
>> Teemu Likonen <tlikonen@iki.fi> writes:
>>
>>> With the default settings user has 30 days to
>>> recover the branch's previous state,
>>
>> Actually, s/30 days/90 days/ according to "man git-gc".
>
> I understand it that objects which are not reachable form the tip of
> current branches are subject for garbage-collecting in 30 days. For
> example, let's say we are in "master" branch and do "git reset --hard
> master~1". It makes the previous HEAD commit unreachable from "master"
> branch and it can be GCd in 30 days (?).
>
> My understanding can be wrong, of course. The manual explainst options
> like gc.reflogExpire and gc.reflogExpireUnreachable separately but does
> not draw the big picture how things work.

Oops, I think you're right. I didn't read about
gc.reflogExpireUnreachable carrefully enough.

-- 
Matthieu

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-12 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <85b5c3130904111627l7cdd15a1n78271c8e113c4b7a@mail.gmail.com>
     [not found] ` <cd4419280904120508v37314166pb35db8b50ec54839@mail.gmail.com>
     [not found]   ` <87d4bhlxlf.fsf@iki.fi>
     [not found]     ` <vpqocv1vr1y.fsf@bauges.imag.fr>
2009-04-12 15:39       ` how to squash commits Teemu Likonen
2009-04-12 15:54         ` Matthieu Moy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox