Thread (10 messages) flat view 10 messages, 4 authors, 2016-06-15

Re: Diffs "from" working directory

From: J. Bruce Fields <hidden>
Date: 2016-06-15 22:42:12

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?
quoted hunk
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help