git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [StGit] what happened to stg diff -r /{bottom|top}?

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
Dec 5, 2008, 22:26 UTC
Message-ID
<b0943d9e0812051426m624c4889o314c1894114d1487@mail.gmail.com>
In-Reply-To
<49395CC9.2010107@intel.com>
2008/12/5 Dan Williams <dan.j.williams@intel.com>:
Show 6 quoted lines
> I noticed that with the latest StGit:
> # stg diff -r /bottom
> stg diff: /bottom: Unknown patch or revision name
>
> Before I bisect to find where this disappeared, is there a different syntax
> I should be using?

In the development (master) branch, we changed the syntax to make it cleaner. A patch (its top) can be identified as [<branch>:]<patch>. It also supports standard Git suffixes like ^, ~{...} etc. To access the bottom of a patch, just use [<branch>:]<patch>^.

The bottom of the top patch could be accessed as HEAD^ (I've been thinking about only allowing the caret for this, without the HEAD but I didn't have time to try it).

-- 
Catalin
Previous: Dan Williams
Message 2 of 2 in “[StGit] what happened to stg diff -r /{bottom|top}?”
  1. Dan WilliamsDec 5, 2008
  2. Catalin MarinasDec 5, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.