git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* gitk: Removing Stacked Git branches from the --all view
@ 2010-08-17  6:02 Joshua Jensen
  2010-08-17 17:42 ` Sverre Rabbelier
  2010-08-18 16:23 ` Chris Packham
  0 siblings, 2 replies; 4+ messages in thread
From: Joshua Jensen @ 2010-08-17  6:02 UTC (permalink / raw)
  To: git@vger.kernel.org

  I often run 'gitk --all'.  It works great until I introduce Stacked 
Git into the equation.  StGit uses branches called branchname.stgit for 
various metadata.  The metadata turns into an ugly mess with gitk --all.

I've been playing around with various 'git log' options, but I'm not 
finding one that gives me the gitk --all view as if StGit were never 
attached to the repository.  (Speaking of StGit and apps that store 
metadata in branches... it would be awesome to have a filter that knocks 
those branches out of ALL views of the data.)

Would someone mind helping me out?

Thanks.

Josh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gitk: Removing Stacked Git branches from the --all view
  2010-08-17  6:02 gitk: Removing Stacked Git branches from the --all view Joshua Jensen
@ 2010-08-17 17:42 ` Sverre Rabbelier
  2010-08-18 16:07   ` Joshua Jensen
  2010-08-18 16:23 ` Chris Packham
  1 sibling, 1 reply; 4+ messages in thread
From: Sverre Rabbelier @ 2010-08-17 17:42 UTC (permalink / raw)
  To: Joshua Jensen; +Cc: git@vger.kernel.org

Heya,

On Tue, Aug 17, 2010 at 01:02, Joshua Jensen <jjensen@workspacewhiz.com> wrote:
> I've been playing around with various 'git log' options, but I'm not finding
> one that gives me the gitk --all view as if StGit were never attached to the
> repository.  (Speaking of StGit and apps that store metadata in branches...
> it would be awesome to have a filter that knocks those branches out of ALL
> views of the data.)

It would be easier if StGit DTRT and stored its metadata in a stgit/
namespace. That way you could just do `gitk --branches=refs/heads/`.
There's (afaik) no way to specify what refs not to show, you'd need to
teach 'git rev-list' a way to ignore a ref space. You'd have to teach
it how to interpret something like `git rev-list --all --not
--branches=refs/heads/*.stgit`.

-- 
Cheers,

Sverre Rabbelier

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gitk: Removing Stacked Git branches from the --all view
  2010-08-17 17:42 ` Sverre Rabbelier
@ 2010-08-18 16:07   ` Joshua Jensen
  0 siblings, 0 replies; 4+ messages in thread
From: Joshua Jensen @ 2010-08-18 16:07 UTC (permalink / raw)
  To: Sverre Rabbelier; +Cc: git@vger.kernel.org

  ----- Original Message -----
From: Sverre Rabbelier
Date: 8/17/2010 11:42 AM
> On Tue, Aug 17, 2010 at 01:02, Joshua Jensen<jjensen@workspacewhiz.com>  wrote:
>> I've been playing around with various 'git log' options, but I'm not finding
>> one that gives me the gitk --all view as if StGit were never attached to the
>> repository.  (Speaking of StGit and apps that store metadata in branches...
>> it would be awesome to have a filter that knocks those branches out of ALL
>> views of the data.)
> It would be easier if StGit DTRT and stored its metadata in a stgit/
> namespace. That way you could just do `gitk --branches=refs/heads/`.
> There's (afaik) no way to specify what refs not to show, you'd need to
> teach 'git rev-list' a way to ignore a ref space. You'd have to teach
> it how to interpret something like `git rev-list --all --not
> --branches=refs/heads/*.stgit`.
Sure, I agree StGit should the metadata in an stgit/ namespace.

In any case, it sounds like there is no way to pull this off right now.  :(

Thanks for the help!

Josh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gitk: Removing Stacked Git branches from the --all view
  2010-08-17  6:02 gitk: Removing Stacked Git branches from the --all view Joshua Jensen
  2010-08-17 17:42 ` Sverre Rabbelier
@ 2010-08-18 16:23 ` Chris Packham
  1 sibling, 0 replies; 4+ messages in thread
From: Chris Packham @ 2010-08-18 16:23 UTC (permalink / raw)
  To: Joshua Jensen; +Cc: git@vger.kernel.org

On 16/08/10 23:02, Joshua Jensen wrote:
>  I often run 'gitk --all'.  It works great until I introduce Stacked Git
> into the equation.  StGit uses branches called branchname.stgit for
> various metadata.  The metadata turns into an ugly mess with gitk --all.
> 
> I've been playing around with various 'git log' options, but I'm not
> finding one that gives me the gitk --all view as if StGit were never
> attached to the repository.  (Speaking of StGit and apps that store
> metadata in branches... it would be awesome to have a filter that knocks
> those branches out of ALL views of the data.)
> 
> Would someone mind helping me out?
> 
> Thanks.
> 
> Josh

One thing I found was 'stg log --clear' (I'm running a newish version
direct from the stgit repo but I think it should be there in stgit
0.15). It gets rid of a lot (but not all) of the extra objects that
pollute the 'gitk --all' output.

One word of caution is that the Stack Git log has saved me from losing
work when I've done something bone headed so I tend to clear the log
only when I'm sure I've got everything I need committed upstream.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-18 16:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-17  6:02 gitk: Removing Stacked Git branches from the --all view Joshua Jensen
2010-08-17 17:42 ` Sverre Rabbelier
2010-08-18 16:07   ` Joshua Jensen
2010-08-18 16:23 ` Chris Packham

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).