Git development
 help / color / mirror / Atom feed
* Lost uncommitted changes and cogito
@ 2005-06-09 19:23 Jon Smirl
  2005-06-10  0:28 ` Jon Smirl
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Smirl @ 2005-06-09 19:23 UTC (permalink / raw)
  To: git

Uning current updated cogito I have three trees:

linus
linux-good 
linux-merge

linux-merge had uncommitted changes

>From linus I did cg update which pulled from linus.
From linux-merge I did cg update which pulled from linus.

At this point the uncommitted changes in linux-merge were fine. 

Then I wasn't thinking and did cg update linux-good from linux-merge.
linux-merge was already update to date with linux-good since there
were no changes to linux-good pending. Doing that update created an
empty commit and also lost my uncommitted changes. Shouldn't that have
just done nothing?

>From first update in linux-merge:
Applying changes...
drivers/char/drm/Kconfig: locally modified
drivers/char/drm/drm_drv.c: locally modified
drivers/char/drm/radeon_drv.c: locally modified
drivers/char/drm/radeon_drv.h: locally modified
drivers/video/aty/radeon_base.c: locally modified
Merging 35d1bc90546d1f0af198886ae8062a550142d926 ->
cf380ee7308db0f067ceb2ae8b852838788bf453
        to 4952d9aaa928e711b0cd40c6a6d48b73544b88f0...

Committed as 941cc5f620f6f4827885bc3f03519416bd9461ab.
[jonsmirl@jonsmirl linux-merge]$ make

>From second - local changes are gone.
Applying changes...
Merging cf380ee7308db0f067ceb2ae8b852838788bf453 ->
a7db5e4f33e72569936af357084e31305fab6618
        to 941cc5f620f6f4827885bc3f03519416bd9461ab...

Committed as b0165eea961c7f2809a0aaabae7904a3a766ee05.
[jonsmirl@jonsmirl linux-merge]$ make


-- 
Jon Smirl
jonsmirl@gmail.com

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

* Re: Lost uncommitted changes and cogito
  2005-06-09 19:23 Lost uncommitted changes and cogito Jon Smirl
@ 2005-06-10  0:28 ` Jon Smirl
  2005-06-10 16:20   ` Chris Wedgwood
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Smirl @ 2005-06-10  0:28 UTC (permalink / raw)
  To: git

After experimenting for a while it looks like any cg update to a
branch that the repository wasn't initially cloned from will lose the
pending uncomitted changes.

-- 
Jon Smirl
jonsmirl@gmail.com

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

* Re: Lost uncommitted changes and cogito
  2005-06-10  0:28 ` Jon Smirl
@ 2005-06-10 16:20   ` Chris Wedgwood
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Wedgwood @ 2005-06-10 16:20 UTC (permalink / raw)
  To: Jon Smirl; +Cc: git

On Thu, Jun 09, 2005 at 08:28:25PM -0400, Jon Smirl wrote:

> After experimenting for a while it looks like any cg update to a
> branch that the repository wasn't initially cloned from will lose
> the pending uncomitted changes.

I've had my current working tree trashed too a few times so I more or
less backup my tree before doing anything adventurous in case of
accidents or bugs.

I'd actually like to see checked out files being RO and needing some
kind of explicit "cg-edit <filename>" or similar to frob them to RW so
that we can use the R/W status in order to determine what files are
safe to mess with.

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

end of thread, other threads:[~2005-06-10 16:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-09 19:23 Lost uncommitted changes and cogito Jon Smirl
2005-06-10  0:28 ` Jon Smirl
2005-06-10 16:20   ` Chris Wedgwood

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