{"thread":{"id":"18837","subject":"Re: how to squash commits","startedAt":"2009-04-12T15:39:10Z","lastAt":"2009-04-12T15:54:10Z","messageCount":2,"participants":["Teemu Likonen","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"111129","messageId":"871vrxlw4h.fsf@iki.fi","threadId":"18837","inReplyTo":"vpqocv1vr1y.fsf@bauges.imag.fr","subject":"Re: how to squash commits","fromName":"Teemu Likonen","fromEmail":"tlikonen@iki.fi","sentAt":"2009-04-12T15:39:10Z","receivedAt":"2009-04-12T15:39:10Z","isPatch":false,"sender":{"key":"tlikonen@iki.fi","avatar":null},"body":"Let's add the Git mailing list to the Cc list if someone there wants to\ncomment. The whole thread is here:\n\nhttp://thread.gmane.org/gmane.comp.version-control.mercurial.general/13283/focus=13295\n\n\nOn 2009-04-12 17:18 (+0200), Matthieu Moy wrote:\n\n> Teemu Likonen <tlikonen@iki.fi> writes:\n>\n>> With the default settings user has 30 days to\n>> recover the branch's previous state,\n>\n> Actually, s/30 days/90 days/ according to \"man git-gc\".\n\nI understand it that objects which are not reachable form the tip of\ncurrent branches are subject for garbage-collecting in 30 days. For\nexample, let's say we are in \"master\" branch and do \"git reset --hard\nmaster~1\". It makes the previous HEAD commit unreachable from \"master\"\nbranch and it can be GCd in 30 days (?).\n\nMy understanding can be wrong, of course. The manual explainst options\nlike gc.reflogExpire and gc.reflogExpireUnreachable separately but does\nnot draw the big picture how things work.\n\nhttp://www.kernel.org/pub/software/scm/git/docs/git-gc.html\n"},{"id":"111130","messageId":"vpq1vrxvpel.fsf@bauges.imag.fr","threadId":"18837","inReplyTo":"871vrxlw4h.fsf@iki.fi","subject":"Re: how to squash commits","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2009-04-12T15:54:10Z","receivedAt":"2009-04-12T15:54:10Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"Teemu Likonen <tlikonen@iki.fi> writes:\n\n> Let's add the Git mailing list to the Cc list if someone there wants to\n> comment. The whole thread is here:\n>\n> http://thread.gmane.org/gmane.comp.version-control.mercurial.general/13283/focus=13295\n>\n>\n> On 2009-04-12 17:18 (+0200), Matthieu Moy wrote:\n>\n>> Teemu Likonen <tlikonen@iki.fi> writes:\n>>\n>>> With the default settings user has 30 days to\n>>> recover the branch's previous state,\n>>\n>> Actually, s/30 days/90 days/ according to \"man git-gc\".\n>\n> I understand it that objects which are not reachable form the tip of\n> current branches are subject for garbage-collecting in 30 days. For\n> example, let's say we are in \"master\" branch and do \"git reset --hard\n> master~1\". It makes the previous HEAD commit unreachable from \"master\"\n> branch and it can be GCd in 30 days (?).\n>\n> My understanding can be wrong, of course. The manual explainst options\n> like gc.reflogExpire and gc.reflogExpireUnreachable separately but does\n> not draw the big picture how things work.\n\nOops, I think you're right. I didn't read about\ngc.reflogExpireUnreachable carrefully enough.\n\n-- \nMatthieu\n"}]}