Re: [PATCH 2/2] git-gc: skip stashes when expiring reflogs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/6/13 Johannes Schindelin <Johannes.Schindelin@xxxxxx>:
> Hi,
>
> On Thu, 12 Jun 2008, Eric Raible wrote:
>
>> On Thu, Jun 12, 2008 at 1:51 PM, Junio C Hamano <gitster@xxxxxxxxx> wrote:
>> > Perhaps
>> >
>> >  http://thread.gmane.org/gmane.comp.version-control.git/84665/focus=84670
>> >
>> > The user explicitly asks to stash it for a while, where the definition of
>> > the "while" comes from reflog's retention period.
>>
>> But that doesn't answer the basic question as to why it's ok
>> to trash data that the user explicitly asked git to save?
>
> If the user really asked git to save the changes, she would have
> _committed_ them.
>
> "git stash" really is only about shelving quickly and dirtily something
> you'll need (or maybe need) in a moment.
>
> If you need something from the stash a day after stashing it, you have a
> serious problem with understanding what branches are for.

Even if everyone were to eventually agree with this, I think it's a bit rude
to teach people who stored something important in a stash for a month that
this is the case by deleting their work.

Even with the documentation update, if you're a newbie, you might not know
that git in some places automatically calls git gc when you git pull, as in
the example Brandon gave.

-- 
Mikael Magnusson
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux