{"thread":{"id":"9697","subject":"Visualising stashed commits in gitk/qgit/giggle","startedAt":"2007-08-30T00:38:35Z","lastAt":"2007-08-30T08:29:12Z","messageCount":2,"participants":["Martin Langhoff","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"51862","messageId":"46a038f90708291738h6a399d7bs4dd6778c8815390a@mail.gmail.com","threadId":"9697","inReplyTo":null,"subject":"Visualising stashed commits in gitk/qgit/giggle","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2007-08-30T00:38:35Z","receivedAt":"2007-08-30T00:38:35Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"Now that we have had git stash in master for a while, I've gotten\ncompletely addicted to it. :-) Before I used to create mini branches\nall the time, and my working repos were littered with 'WIP-nn'\nbranches everywhere.\n\nWhich was mucky... but appeared in gitk/qgit transparently.\n\nIs there any way to get them to appear in gitk or any other gui history browser?\n\ncheers,\n\n\nmartin\n"},{"id":"51883","messageId":"20070830082912.GB6097@coredump.intra.peff.net","threadId":"9697","inReplyTo":"46a038f90708291738h6a399d7bs4dd6778c8815390a@mail.gmail.com","subject":"Re: Visualising stashed commits in gitk/qgit/giggle","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2007-08-30T08:29:12Z","receivedAt":"2007-08-30T08:29:12Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Aug 30, 2007 at 12:38:35PM +1200, Martin Langhoff wrote:\n\n> Now that we have had git stash in master for a while, I've gotten\n> completely addicted to it. :-) Before I used to create mini branches\n> all the time, and my working repos were littered with 'WIP-nn'\n> branches everywhere.\n> \n> Which was mucky... but appeared in gitk/qgit transparently.\n> \n> Is there any way to get them to appear in gitk or any other gui\n> history browser?\n\nThe stash list is stored as a reflog, so any browser that understands\nreflogs will visualize them fine. gitk's visualization of reflogs (gitk\n-g) tends to be a bit cluttered, because it finds and displays the real\nparents, which doesn't quite mesh with the reflog-ordered view of\nhistory. You can try \"gitk stash\" to see the structure of the latest\nstash, and you can try \"gitk -g stash\", but it's pretty unreadable.\n\nYou really need another way to get the refs into gitk's view without\nusing '-g'. You can do this: \"gitk stash@{0} stash@{1} stash@{2}\" which\nlooks OK, but doesn't scale for obvious reasons.\n\nTig actually displays reflogs nicely, because it has a much simpler\nconcept of viewing history. 'tig -g stash' will give you the stashes, in\norder, for inspection.\n\nPerhaps not the answer you were looking for, but it might give you a\nstart on implementing something. What kind of display were you looking\nfor? A view of the stashes as if they were a chain of commits (like tig\ngives), or the stashes inserted into the full history graph (like gitk\nstash@{0} stash@{1})?\n\n-Peff\n"}]}