{"thread":{"id":"16605","subject":"[StGit] what happened to stg diff -r /{bottom|top}?","startedAt":"2008-12-05T16:54:33Z","lastAt":"2008-12-05T22:26:44Z","messageCount":2,"participants":["Dan Williams","Catalin Marinas"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"97208","messageId":"49395CC9.2010107@intel.com","threadId":"16605","inReplyTo":null,"subject":"[StGit] what happened to stg diff -r /{bottom|top}?","fromName":"Dan Williams","fromEmail":"dan.j.williams@intel.com","sentAt":"2008-12-05T16:54:33Z","receivedAt":"2008-12-05T16:54:33Z","isPatch":false,"sender":{"key":"dan.j.williams@intel.com","avatar":null},"body":"I noticed that with the latest StGit:\n# stg diff -r /bottom\nstg diff: /bottom: Unknown patch or revision name\n\nBefore I bisect to find where this disappeared, is there a different \nsyntax I should be using?\n\nThanks,\nDan\n"},{"id":"97223","messageId":"b0943d9e0812051426m624c4889o314c1894114d1487@mail.gmail.com","threadId":"16605","inReplyTo":"49395CC9.2010107@intel.com","subject":"Re: [StGit] what happened to stg diff -r /{bottom|top}?","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@gmail.com","sentAt":"2008-12-05T22:26:44Z","receivedAt":"2008-12-05T22:26:44Z","isPatch":false,"sender":{"key":"catalin.marinas@gmail.com","avatar":null},"body":"2008/12/5 Dan Williams <dan.j.williams@intel.com>:\n> I noticed that with the latest StGit:\n> # stg diff -r /bottom\n> stg diff: /bottom: Unknown patch or revision name\n>\n> Before I bisect to find where this disappeared, is there a different syntax\n> I should be using?\n\nIn the development (master) branch, we changed the syntax to make it\ncleaner. A patch (its top) can be identified as [<branch>:]<patch>. It\nalso supports standard Git suffixes like ^, ~{...} etc. To access the\nbottom of a patch, just use [<branch>:]<patch>^.\n\nThe bottom of the top patch could be accessed as HEAD^ (I've been\nthinking about only allowing the caret for this, without the HEAD but\nI didn't have time to try it).\n\n-- \nCatalin\n"}]}