* git-svn: commit all changes as one svn revision?
@ 2008-05-23 16:08 Robert Anderson
2008-05-23 16:22 ` Thomas Harning
2008-05-23 16:31 ` Thomas Rast
0 siblings, 2 replies; 3+ messages in thread
From: Robert Anderson @ 2008-05-23 16:08 UTC (permalink / raw)
To: git
Use case:
I make a bunch of git commits developing something that was checked
out from a svn repo using git-svn. I want to commit all the changes
since my last dcommit as one revision, rather than having each git
commit checked in separately, as dcommit behaves.
Is there a way to do this?
Thanks,
Bob Anderson
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git-svn: commit all changes as one svn revision?
2008-05-23 16:08 git-svn: commit all changes as one svn revision? Robert Anderson
@ 2008-05-23 16:22 ` Thomas Harning
2008-05-23 16:31 ` Thomas Rast
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Harning @ 2008-05-23 16:22 UTC (permalink / raw)
To: Robert Anderson; +Cc: git
On May 23, 2008, at 12:08 PM, Robert Anderson wrote:
> I make a bunch of git commits developing something that was checked
> out from a svn repo using git-svn. I want to commit all the changes
> since my last dcommit as one revision, rather than having each git
> commit checked in separately, as dcommit behaves.
>
> Is there a way to do this?
git-svn dcommit -m
(IIRR)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git-svn: commit all changes as one svn revision?
2008-05-23 16:08 git-svn: commit all changes as one svn revision? Robert Anderson
2008-05-23 16:22 ` Thomas Harning
@ 2008-05-23 16:31 ` Thomas Rast
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Rast @ 2008-05-23 16:31 UTC (permalink / raw)
To: Robert Anderson; +Cc: git
You wrote:
> I make a bunch of git commits developing something that was checked
> out from a svn repo using git-svn. I want to commit all the changes
> since my last dcommit as one revision, rather than having each git
> commit checked in separately, as dcommit behaves.
I usually do
$ git checkout -b side master
... edit, commit ...
$ git checkout master
$ git merge --no-ff side
$ git-svn dcommit
The resulting merge commit looks like a normal merge to Git (keeping
history intact), but like a squashed commit of all changes on 'side'
to SVN.
(If you made all commits on master, you can branch 'side' and hard
reset master to origin/master first.)
- Thomas
--
Thomas Rast
trast@student.ethz.ch
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-23 16:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23 16:08 git-svn: commit all changes as one svn revision? Robert Anderson
2008-05-23 16:22 ` Thomas Harning
2008-05-23 16:31 ` Thomas Rast
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).