From: Jakub Narebski <jnareb@gmail.com>
To: davetron5000 <davetron5000@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: How does git store branchpoints?
Date: Mon, 09 Jun 2008 13:53:36 -0700 (PDT) [thread overview]
Message-ID: <m38wxewcno.fsf@localhost.localdomain> (raw)
In-Reply-To: <fd42f577-60ba-4d26-85a3-7ca4ea8295db@a1g2000hsb.googlegroups.com>
davetron5000 <davetron5000@gmail.com> writes:
> >
> > You can ask git to find branch point using "git merge-base trunk FOO",
> > which should return 'c' (actually, sha-1 of this commit).
>
> OK, this revealed interesting results. The commit it gave me was a
> commit right before ANOTHER SVN branch that I was originally to work
> on, but never did. The files git-merge showed conflicts for were
> files modified since THAT branch (call it BAR) was created and before
> my branch (FOO) was created.
Could you write some ascii-art diagram showing the situation? It is
hard to grasp the situation fully only from above description.
> So, any ideas why git thinks that my two branches are rooted at BAR
> and not FOO? git-svn dcommit on local-FOO commits to FOO and not BAR.
Note that the situation described below might be not related to your
problem; please view history carefully using some (graphical) history
browser like gitk.
It could happen that commits which should be identical aren't,
e.g. because of different timestamp, or different author, or lack of
svn-id: line, or something like that. This isn't helped by the fact
that Subversion doesn't store information about merges; and even if it
does (SVK or svnmerge extensions) I'm not sure if git-svn can use it.
So the situation might be like following:
1---2---3---4---A---B---C <-- branch 1
1'--2'--3'--4'--a---b---c <-- branch 2
while you want it to be
1---2---3---4---A---B---C <-- branch 1
\
\-a---b---c <-- branch 2
Usually working with grafts, examining result in gitk, then commiting
grafts using git-filter-branch is the solution for such history
rewriting.
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2008-06-09 20:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-09 14:17 How does git store branchpoints? davetron5000
2008-06-09 15:07 ` Jakub Narebski
2008-06-09 19:54 ` davetron5000
2008-06-09 20:53 ` Jakub Narebski [this message]
2008-06-09 21:15 ` David Copeland
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=m38wxewcno.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=davetron5000@gmail.com \
--cc=git@vger.kernel.org \
/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).