From: J. Bruce Fields Date: Sun, 20 Nov 2005 17:43:59 GMT Subject: Re: Diffs "from" working directory Message-ID: <20051120174359.GA24177@fieldses.org> In-Reply-To: <200511201817.15780.blaisorblade@yahoo.it> On Sun, Nov 20, 2005 at 06:17:15PM +0100, Blaisorblade wrote: > I've given a look at commit fcc1ad70be5ff89996358b6d770cd229fec2a3ba, and > while it may or may not be the right thing to do, there's a misunderstanding > at the base. What misunderstanding? Could you quote it? > For instance, in the stg tree, before that patch, I can do: > > $ echo ciao >> README > $ stg diff -r HEAD: > $ stg diff -r HEAD > diff --git a/README b/README > index 184ded8..adb3970 100644 > --- a/README > +++ b/README > @@ -12,3 +12,4 @@ StGIT commands. > > For the latest version see http://www.procode.org/stgit/ > For a tutorial see http://wiki.procode.org/cgi-bin/wiki.cgi/StGIT_Tutorial > +ciao That's a diff *to* the working directory. My complaint was that there wasn't a convenient way to get a diff *from* the working directory. It's nice to have a convenient shorthand for the current working directory, and since there's already a shorthand for the HEAD ("HEAD") it seemed more sensible to make "" the current working directory. It's a minor point, but it seems convenient. --b.