login
Header Space

 
 

git-svn and local only topic branch

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Tuesday, May 1, 2007 - 12:40 pm

Hi,

I'm using Git as a SVN frontend (via git-svn). Recently, I made a
topic branch, I did some job on it and wish to "upload" my work (on
the SVN). But, I do not want "pushing" all commits, I only want to
create a single commit on the SVN, while keeping full commits on my
Git repo. But I did not find how to do this.

Here my story.
Let's call "upstream" the local branch connected to the SVN, the raw
SVN mirror branch is remotes/upstream. Now, I create a branch "topic"
from "upstream" and I do job:

o--o--o (upstream, remotes/upstream)
         \
          o--o--o--o (topic)

I want the following result:

o--o--o-------------- o (upstream, remotes/upstream)
         \             /
          o--o--o--o (topic)

So I did "git-merge "Merge" upstream topic". But, the merge action
decided to do a fast-forward. It's not correct because I really don't
want to "pollute" the SVN with all my commits.

So I rewinded and I did "git-merge --squash "Merge" upstream topic".
This time, it seems to work as I obtained a single commit on upstream
branch. But this commit does not have ancestry link with the topic
branch. Here is it:

o--o--o--o (upstream, remotes/upstream)
         \
          o--o--o--o (topic)

Is there a way to do what I want?

-- 
Guilhem BONNEFILLE
-=- #UIN: 15146515 JID: guyou@im.apinc.org MSN: guilhem_bonnefille@hotmail.com
-=- mailto:guilhem.bonnefille@gmail.com
-=- http://nathguil.free.fr/
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-svn and local only topic branch, Guilhem Bonnefille, (Tue May 1, 12:40 pm)
Re: git-svn and local only topic branch, Steven Grimm, (Wed May 2, 3:06 pm)
Re: git-svn and local only topic branch, Guilhem Bonnefille, (Thu May 3, 7:24 am)
Re: git-svn and local only topic branch, Andy Parkins, (Tue May 1, 2:29 pm)
Re: git-svn and local only topic branch, Adam Roben, (Tue May 1, 12:45 pm)
Re: git-svn and local only topic branch, Guilhem Bonnefille, (Tue May 1, 1:30 pm)
speck-geostationary