threads / discuss / 16605

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

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

## tl;dr

2 messages between Dec 5, 2008 and Dec 5, 2008.

replies: 1people: 2as markdown or json

Dan Williams· Dec 5, 2008, 16:54 UTC · lore

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?

Thanks, Dan

Catalin Marinas· Dec 5, 2008, 22:26 UTC · re: Dan Williams · lore

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

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

← back to recent threads