{"thread":{"id":"24764","subject":"gitk: Removing Stacked Git branches from the --all view","startedAt":"2010-08-17T06:02:13Z","lastAt":"2010-08-18T16:23:29Z","messageCount":4,"participants":["Joshua Jensen","Sverre Rabbelier","Chris Packham"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"148229","messageId":"4C6A25E5.5050707@workspacewhiz.com","threadId":"24764","inReplyTo":null,"subject":"gitk: Removing Stacked Git branches from the --all view","fromName":"Joshua Jensen","fromEmail":"jjensen@workspacewhiz.com","sentAt":"2010-08-17T06:02:13Z","receivedAt":"2010-08-17T06:02:13Z","isPatch":false,"sender":{"key":"jjensen@workspacewhiz.com","avatar":"https://avatars.githubusercontent.com/u/111687?v=4"},"body":"  I often run 'gitk --all'.  It works great until I introduce Stacked \nGit into the equation.  StGit uses branches called branchname.stgit for \nvarious metadata.  The metadata turns into an ugly mess with gitk --all.\n\nI've been playing around with various 'git log' options, but I'm not \nfinding one that gives me the gitk --all view as if StGit were never \nattached to the repository.  (Speaking of StGit and apps that store \nmetadata in branches... it would be awesome to have a filter that knocks \nthose branches out of ALL views of the data.)\n\nWould someone mind helping me out?\n\nThanks.\n\nJosh\n"},{"id":"148296","messageId":"AANLkTi=4Jr6KknLyBUe_+bQ4zue2KGNjxJtY8Ja6LmAT@mail.gmail.com","threadId":"24764","inReplyTo":"4C6A25E5.5050707@workspacewhiz.com","subject":"Re: gitk: Removing Stacked Git branches from the --all view","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-08-17T17:42:11Z","receivedAt":"2010-08-17T17:42:11Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Tue, Aug 17, 2010 at 01:02, Joshua Jensen <jjensen@workspacewhiz.com> wrote:\n> I've been playing around with various 'git log' options, but I'm not finding\n> one that gives me the gitk --all view as if StGit were never attached to the\n> repository.  (Speaking of StGit and apps that store metadata in branches...\n> it would be awesome to have a filter that knocks those branches out of ALL\n> views of the data.)\n\nIt would be easier if StGit DTRT and stored its metadata in a stgit/\nnamespace. That way you could just do `gitk --branches=refs/heads/`.\nThere's (afaik) no way to specify what refs not to show, you'd need to\nteach 'git rev-list' a way to ignore a ref space. You'd have to teach\nit how to interpret something like `git rev-list --all --not\n--branches=refs/heads/*.stgit`.\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"148394","messageId":"4C6C0543.7070203@workspacewhiz.com","threadId":"24764","inReplyTo":"AANLkTi=4Jr6KknLyBUe_+bQ4zue2KGNjxJtY8Ja6LmAT@mail.gmail.com","subject":"Re: gitk: Removing Stacked Git branches from the --all view","fromName":"Joshua Jensen","fromEmail":"jjensen@workspacewhiz.com","sentAt":"2010-08-18T16:07:31Z","receivedAt":"2010-08-18T16:07:31Z","isPatch":false,"sender":{"key":"jjensen@workspacewhiz.com","avatar":"https://avatars.githubusercontent.com/u/111687?v=4"},"body":"  ----- Original Message -----\nFrom: Sverre Rabbelier\nDate: 8/17/2010 11:42 AM\n> On Tue, Aug 17, 2010 at 01:02, Joshua Jensen<jjensen@workspacewhiz.com>  wrote:\n>> I've been playing around with various 'git log' options, but I'm not finding\n>> one that gives me the gitk --all view as if StGit were never attached to the\n>> repository.  (Speaking of StGit and apps that store metadata in branches...\n>> it would be awesome to have a filter that knocks those branches out of ALL\n>> views of the data.)\n> It would be easier if StGit DTRT and stored its metadata in a stgit/\n> namespace. That way you could just do `gitk --branches=refs/heads/`.\n> There's (afaik) no way to specify what refs not to show, you'd need to\n> teach 'git rev-list' a way to ignore a ref space. You'd have to teach\n> it how to interpret something like `git rev-list --all --not\n> --branches=refs/heads/*.stgit`.\nSure, I agree StGit should the metadata in an stgit/ namespace.\n\nIn any case, it sounds like there is no way to pull this off right now.  :(\n\nThanks for the help!\n\nJosh\n"},{"id":"148395","messageId":"4C6C0901.4090702@gmail.com","threadId":"24764","inReplyTo":"4C6A25E5.5050707@workspacewhiz.com","subject":"Re: gitk: Removing Stacked Git branches from the --all view","fromName":"Chris Packham","fromEmail":"judge.packham@gmail.com","sentAt":"2010-08-18T16:23:29Z","receivedAt":"2010-08-18T16:23:29Z","isPatch":false,"sender":{"key":"judge.packham@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155667?v=4"},"body":"On 16/08/10 23:02, Joshua Jensen wrote:\n>  I often run 'gitk --all'.  It works great until I introduce Stacked Git\n> into the equation.  StGit uses branches called branchname.stgit for\n> various metadata.  The metadata turns into an ugly mess with gitk --all.\n> \n> I've been playing around with various 'git log' options, but I'm not\n> finding one that gives me the gitk --all view as if StGit were never\n> attached to the repository.  (Speaking of StGit and apps that store\n> metadata in branches... it would be awesome to have a filter that knocks\n> those branches out of ALL views of the data.)\n> \n> Would someone mind helping me out?\n> \n> Thanks.\n> \n> Josh\n\nOne thing I found was 'stg log --clear' (I'm running a newish version\ndirect from the stgit repo but I think it should be there in stgit\n0.15). It gets rid of a lot (but not all) of the extra objects that\npollute the 'gitk --all' output.\n\nOne word of caution is that the Stack Git log has saved me from losing\nwork when I've done something bone headed so I tend to clear the log\nonly when I'm sure I've got everything I need committed upstream.\n"}]}