* [topgit] shared topic branch
@ 2008-12-18 20:02 Fabien Thomas
2009-01-26 12:00 ` martin f krafft
0 siblings, 1 reply; 4+ messages in thread
From: Fabien Thomas @ 2008-12-18 20:02 UTC (permalink / raw)
To: git
Hi,
I'm testing topgit 0.5 in a shared env. (multiple user working on same
patch).
After following the tutorial i end up with something like this:
$ git branch
master
topic/test1
* topic/test2
$ git branch -r
origin/HEAD
origin/master
origin/svn_stable_7
origin/svn_trunk
origin/top-bases/topic/test1
origin/top-bases/topic/test2
origin/topic/test1
origin/topic/test2
My problem is that when i want to push my local work i'm doing "git
push" that will force update the remote branch.
The problem is that each time master is not up to date i will push my
entire master or topic branch to the remote.
After looking at git config file it seems that this is something
normal generated by "tg remote --populate origin":
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = ssh://git@xxx.com
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/top-bases/*:refs/remotes/origin/top-bases/*
push = +refs/top-bases/*:refs/top-bases/*
push = +refs/heads/*:refs/heads/*
[branch "master"]
remote = origin
merge = refs/heads/master
[merge "ours"]
name = \"always keep ours\" merge driver
driver = touch %A
[topgit]
remote = origin
What i'm doing wrong ?
Regards,
Fabien
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [topgit] shared topic branch
2008-12-18 20:02 [topgit] shared topic branch Fabien Thomas
@ 2009-01-26 12:00 ` martin f krafft
2009-01-27 7:23 ` Fabien Thomas
0 siblings, 1 reply; 4+ messages in thread
From: martin f krafft @ 2009-01-26 12:00 UTC (permalink / raw)
To: Fabien Thomas, git
[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]
also sprach Fabien Thomas <thomas.fabien@gmail.com> [2008.12.18.2102 +0100]:
> I'm testing topgit 0.5 in a shared env. (multiple user working on same
> patch).
Sorry for the late reply!
> My problem is that when i want to push my local work i'm doing
> "git push" that will force update the remote branch. The problem
> is that each time master is not up to date i will push my entire
> master or topic branch to the remote.
I do not understand what you mean. Could yo please try to give us
more detail? git push is intended to push all local changes to the
remote, so I don't understand what your problem is.
> [remote "origin"]
[...]
> push = +refs/top-bases/*:refs/top-bases/*
> push = +refs/heads/*:refs/heads/*
Those two lines ensure that git pushes all local heads as well as
all top-bases.
--
martin | http://madduck.net/ | http://two.sentenc.es/
it may look like i'm just sitting here doing nothing.
but i'm really actively waiting
for all my problems to go away.
spamtraps: madduck.bogus@madduck.net
[-- Attachment #2: Digital signature (see http://martin-krafft.net/gpg/) --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [topgit] shared topic branch
2009-01-26 12:00 ` martin f krafft
@ 2009-01-27 7:23 ` Fabien Thomas
2009-01-30 10:15 ` martin f krafft
0 siblings, 1 reply; 4+ messages in thread
From: Fabien Thomas @ 2009-01-27 7:23 UTC (permalink / raw)
To: git; +Cc: martin f krafft
[-- Attachment #1: Type: text/plain, Size: 1398 bytes --]
>> I'm testing topgit 0.5 in a shared env. (multiple user working on
>> same
>> patch).
>
> Sorry for the late reply!
Thanks to reply :)
>
>
>> My problem is that when i want to push my local work i'm doing
>> "git push" that will force update the remote branch. The problem
>> is that each time master is not up to date i will push my entire
>> master or topic branch to the remote.
>
> I do not understand what you mean. Could yo please try to give us
> more detail? git push is intended to push all local changes to the
> remote, so I don't understand what your problem is.
I'm new to topgit and to git so maybe there is something i've
misunderstood:
on the git side:
the + will overwrite all remote location branche named with that
pattern ?
on topgit:
i'm just doing patches on two computer (home+work) and i'm pushing on
a central repo to "backup/share my changes"
if i'm not up to date and i start a push with the "+" will overwrite
the central repo with my local branch. (overwrite of my central repo
master branch and my topics)
to "solve" my problem i've replaced the remote section with this:
[remote "origin"]
url = ssh://git@xxx.com
fetch = refs/heads/*:refs/remotes/origin/*
fetch = refs/top-bases/*:refs/remotes/origin/top-bases/*
push = refs/top-bases/*:refs/top-bases/*
push = refs/heads/topic/*:refs/heads/topic/*
is it more clear?
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 1860 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-30 10:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-18 20:02 [topgit] shared topic branch Fabien Thomas
2009-01-26 12:00 ` martin f krafft
2009-01-27 7:23 ` Fabien Thomas
2009-01-30 10:15 ` martin f krafft
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox