* stgit: cleaning up after using git branch delete commands
@ 2007-11-07 14:06 Jon Smirl
2007-11-07 14:57 ` Catalin Marinas
0 siblings, 1 reply; 5+ messages in thread
From: Jon Smirl @ 2007-11-07 14:06 UTC (permalink / raw)
To: Git Mailing List
I've used git commands to delete several branches that had stgit
active on it. Doing that has left a bunch of clutter in the .git
directory. Is there a stgit command to remove all the clutter from
branches that no longer exist? I'd like to use the branch names again
but the clutter is interfering.
--
Jon Smirl
jonsmirl@gmail.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: stgit: cleaning up after using git branch delete commands
2007-11-07 14:06 stgit: cleaning up after using git branch delete commands Jon Smirl
@ 2007-11-07 14:57 ` Catalin Marinas
2007-11-07 16:11 ` Jon Smirl
0 siblings, 1 reply; 5+ messages in thread
From: Catalin Marinas @ 2007-11-07 14:57 UTC (permalink / raw)
To: Jon Smirl; +Cc: Git Mailing List
"Jon Smirl" <jonsmirl@gmail.com> wrote:
> I've used git commands to delete several branches that had stgit
> active on it. Doing that has left a bunch of clutter in the .git
> directory. Is there a stgit command to remove all the clutter from
> branches that no longer exist? I'd like to use the branch names again
> but the clutter is interfering.
You can create the branch back with GIT and run "stg branch --delete
--force", though I don't guarantee it will work (BTW, I only recently
relaxed the branch deletion rules in StGIT so that it doesn't complain
of missing files and completes the operation, so you should use the
latest HEAD).
--
Catalin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: stgit: cleaning up after using git branch delete commands
2007-11-07 14:57 ` Catalin Marinas
@ 2007-11-07 16:11 ` Jon Smirl
2007-11-08 5:53 ` Karl Hasselström
0 siblings, 1 reply; 5+ messages in thread
From: Jon Smirl @ 2007-11-07 16:11 UTC (permalink / raw)
To: Catalin Marinas; +Cc: Git Mailing List
On 11/7/07, Catalin Marinas <catalin.marinas@arm.com> wrote:
> "Jon Smirl" <jonsmirl@gmail.com> wrote:
> > I've used git commands to delete several branches that had stgit
> > active on it. Doing that has left a bunch of clutter in the .git
> > directory. Is there a stgit command to remove all the clutter from
> > branches that no longer exist? I'd like to use the branch names again
> > but the clutter is interfering.
>
> You can create the branch back with GIT and run "stg branch --delete
> --force", though I don't guarantee it will work (BTW, I only recently
> relaxed the branch deletion rules in StGIT so that it doesn't complain
> of missing files and completes the operation, so you should use the
> latest HEAD).
how about a 'stg gc' command that gets rid of all the inaccessible clutter?
>
> --
> Catalin
>
--
Jon Smirl
jonsmirl@gmail.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: stgit: cleaning up after using git branch delete commands
2007-11-07 16:11 ` Jon Smirl
@ 2007-11-08 5:53 ` Karl Hasselström
2007-11-08 9:18 ` Catalin Marinas
0 siblings, 1 reply; 5+ messages in thread
From: Karl Hasselström @ 2007-11-08 5:53 UTC (permalink / raw)
To: Jon Smirl; +Cc: Catalin Marinas, Git Mailing List
On 2007-11-07 11:11:42 -0500, Jon Smirl wrote:
> how about a 'stg gc' command that gets rid of all the inaccessible
> clutter?
"stg assimilate" already has the job of fixing up stuff after the user
has used git commands to move HEAD around. I think it would make sense
to teach it to do this too -- and then rename it "stg repair" or
something. That way, there's one command to fix every kind of "damage"
that git can do to stgit.
Alternatively, "stg branch --create" and "stg init" and whoever else
is bothered by the clutter could simply remove it themselves. That
would be even more user-friendly, I guess.
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: stgit: cleaning up after using git branch delete commands
2007-11-08 5:53 ` Karl Hasselström
@ 2007-11-08 9:18 ` Catalin Marinas
0 siblings, 0 replies; 5+ messages in thread
From: Catalin Marinas @ 2007-11-08 9:18 UTC (permalink / raw)
To: Karl Hasselström; +Cc: Jon Smirl, Git Mailing List
On 08/11/2007, Karl Hasselström <kha@treskal.com> wrote:
> On 2007-11-07 11:11:42 -0500, Jon Smirl wrote:
>
> > how about a 'stg gc' command that gets rid of all the inaccessible
> > clutter?
>
> "stg assimilate" already has the job of fixing up stuff after the user
> has used git commands to move HEAD around. I think it would make sense
> to teach it to do this too -- and then rename it "stg repair" or
> something. That way, there's one command to fix every kind of "damage"
> that git can do to stgit.
"repair" sounds better than "gc" (which might also be confused with
the "git gc" command).
> Alternatively, "stg branch --create" and "stg init" and whoever else
> is bothered by the clutter could simply remove it themselves. That
> would be even more user-friendly, I guess.
I did some fixes for branch --delete but, since I use StGIT almost
exclusively, haven't thought that we need to relax the branch creation
as well.
--
Catalin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-08 9:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07 14:06 stgit: cleaning up after using git branch delete commands Jon Smirl
2007-11-07 14:57 ` Catalin Marinas
2007-11-07 16:11 ` Jon Smirl
2007-11-08 5:53 ` Karl Hasselström
2007-11-08 9:18 ` 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).