* stgit: deleting a branch doesn't seem to work
@ 2006-08-21 17:27 Torgil Svensson
2006-08-22 8:34 ` Catalin Marinas
0 siblings, 1 reply; 4+ messages in thread
From: Torgil Svensson @ 2006-08-21 17:27 UTC (permalink / raw)
To: git
I have three branches and want my "gst10" to be "master" instead
$ stg branch --delete master
Deleting branch "master"... done
$ stg branch -l
Available branches:
s gst10 |
master |
> origin |
$ stg branch --delete master
Deleting branch "master"... done
$ stg branch -r gst10 master
stg branch: Branch "master" already exists
Is there something i'm missing in my logic?
//Torgil
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stgit: deleting a branch doesn't seem to work
2006-08-21 17:27 stgit: deleting a branch doesn't seem to work Torgil Svensson
@ 2006-08-22 8:34 ` Catalin Marinas
2006-08-22 17:12 ` Torgil Svensson
0 siblings, 1 reply; 4+ messages in thread
From: Catalin Marinas @ 2006-08-22 8:34 UTC (permalink / raw)
To: Torgil Svensson; +Cc: git
"Torgil Svensson" <torgil.svensson@gmail.com> wrote:
> I have three branches and want my "gst10" to be "master" instead
>
> $ stg branch --delete master
> Deleting branch "master"... done
> $ stg branch -l
> Available branches:
> s gst10 |
> master |
>> origin |
> $ stg branch --delete master
> Deleting branch "master"... done
> $ stg branch -r gst10 master
> stg branch: Branch "master" already exists
>
> Is there something i'm missing in my logic?
It's not actually documented but it looks like the master branch is
not completely deleted by StGIT. If you have StGIT-managed patches in
"master", they are removed but the GIT branch is kept as this is
usually the default branch.
You could do a "git branch -d master" but maybe I should change StGIT
to fully delete the "master" branch as well.
--
Catalin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stgit: deleting a branch doesn't seem to work
2006-08-22 8:34 ` Catalin Marinas
@ 2006-08-22 17:12 ` Torgil Svensson
2006-08-23 9:15 ` Catalin Marinas
0 siblings, 1 reply; 4+ messages in thread
From: Torgil Svensson @ 2006-08-22 17:12 UTC (permalink / raw)
To: Catalin Marinas, git
Which option you choose doesn't really matter to me, I easily deleted
the master-branch (with rm). If you choose to stay with the current
situation the message should be changed to something like "stgit
patches succesfully deleted from branch xxx" and "branch xxx is not
controlled by stgit, nothing is done."
It also would be helpful to new users if "stg refresh -e" is mentioned
in the tutorial. Refresh isn't obvious to test if you want to edit
description.
Otherwise I had no problem in my first stgit experience. I first took
a chance that "stgit import" recognized patches saved by
"format-patch", but this was easily solved with "stg refresh -e" once
I found it (thanks #git).
I've never worked with quilt before so i'm new to this style of
development. My experiece so far is that I find stgit to be very
useful. Thanks!
//Torgil
On 8/22/06, Catalin Marinas <catalin.marinas@arm.com> wrote:
> "Torgil Svensson" <torgil.svensson@gmail.com> wrote:
> > I have three branches and want my "gst10" to be "master" instead
> >
> > $ stg branch --delete master
> > Deleting branch "master"... done
> > $ stg branch -l
> > Available branches:
> > s gst10 |
> > master |
> >> origin |
> > $ stg branch --delete master
> > Deleting branch "master"... done
> > $ stg branch -r gst10 master
> > stg branch: Branch "master" already exists
> >
> > Is there something i'm missing in my logic?
>
> It's not actually documented but it looks like the master branch is
> not completely deleted by StGIT. If you have StGIT-managed patches in
> "master", they are removed but the GIT branch is kept as this is
> usually the default branch.
>
> You could do a "git branch -d master" but maybe I should change StGIT
> to fully delete the "master" branch as well.
>
> --
> Catalin
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stgit: deleting a branch doesn't seem to work
2006-08-22 17:12 ` Torgil Svensson
@ 2006-08-23 9:15 ` Catalin Marinas
0 siblings, 0 replies; 4+ messages in thread
From: Catalin Marinas @ 2006-08-23 9:15 UTC (permalink / raw)
To: Torgil Svensson; +Cc: git
On 22/08/06, Torgil Svensson <torgil.svensson@gmail.com> wrote:
> Otherwise I had no problem in my first stgit experience. I first took
> a chance that "stgit import" recognized patches saved by
> "format-patch", but this was easily solved with "stg refresh -e" once
> I found it (thanks #git).
You could also use git-apply which understands the output of
format-patch and change the commits into StGIT patches with "stg
uncommit" (use the latest stgit snapshot as it has some bug-fixes and
can automatically generate the patch name from the commit subject
line).
The tutorial is pretty old and doesn't cover all the commands and options.
--
Catalin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-08-23 9:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-21 17:27 stgit: deleting a branch doesn't seem to work Torgil Svensson
2006-08-22 8:34 ` Catalin Marinas
2006-08-22 17:12 ` Torgil Svensson
2006-08-23 9:15 ` Catalin Marinas
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).