From: Junio C Hamano <junkio@cox.net>
To: Ryan Anderson <ryan@michonline.com>
Cc: git@vger.kernel.org
Subject: Re: files are disappearing in git
Date: Fri, 25 Nov 2005 13:28:00 -0800 [thread overview]
Message-ID: <7virugmn8f.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20051125195121.GG16995@mythryan2.michonline.com> (Ryan Anderson's message of "Fri, 25 Nov 2005 14:51:22 -0500")
Ryan Anderson <ryan@michonline.com> writes:
> Can something like this sequence do it?
>
> ...
>
> The key point being that the merge is done in a tree that has its index
> out of sync with its HEAD (git push ../tree2/ .... git pull ../tree3/ )
>
> I think that's the situation where I've personally managed to lose
> and/or revert some changes.
The moral of the story is not to push into the checked-out
branch of a non-naked repository, or you need to do what you are
doing if you choose to do so. It might have made sense if index
file recorded which tree object its contents came from, but I am
not sure what tools is responsible for recording that if we
choose to extend index file to store that information. Probably
read-tree is, but it should not do that unconditionally.
In any case, the workflow presented by Nick is that individual
developers use cg-* commands in CVS like workflow where the only
place you push into is the central repository and everybody
pulls from there, so I do not think the above example applies.
next prev parent reply other threads:[~2005-11-25 21:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-23 14:23 files are disappearing in git Nico -telmich- Schottelius
2005-11-23 17:20 ` Linus Torvalds
2005-11-24 8:46 ` Nico -telmich- Schottelius
2005-11-24 9:15 ` Junio C Hamano
2005-11-24 10:38 ` Nico -telmich- Schottelius
2005-11-25 1:54 ` Ryan Anderson
2005-11-25 10:30 ` Nico -telmich- Schottelius
2005-11-25 19:12 ` Linus Torvalds
2005-11-25 19:39 ` Petr Baudis
2005-11-25 19:51 ` Ryan Anderson
2005-11-25 21:28 ` Junio C Hamano [this message]
2005-11-25 22:11 ` Linus Torvalds
2005-11-25 22:48 ` Petr Baudis
2005-11-25 21:28 ` Nico -telmich- Schottelius
2005-11-25 22:57 ` Petr Baudis
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7virugmn8f.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=ryan@michonline.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.
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 NNTP newsgroup(s).