Add `git diff --word-diff` and `git name-rev` notes to Git/notes.org.
authorW. Trevor King <wking@drexel.edu>
Wed, 23 Feb 2011 13:44:52 +0000 (08:44 -0500)
committerW. Trevor King <wking@drexel.edu>
Wed, 23 Feb 2011 13:44:52 +0000 (08:44 -0500)
posts/Git/notes.org

index 480ba996667c94fcce6a0590faf396c88574de09..ef57a6254cb0b27efa7c95aeb2d64a2e8f997e21 100644 (file)
@@ -725,6 +725,20 @@ previous commit
 
     : $ GIT_COMMITTER_DATE="2006-10-02 10:31" git tag -s v1.0.1 <commit>
 
+** Inline word diff
+[[http://mislav.uniqpath.com/2010/07/git-tips/][mislav]]
+
+
+    : $ git diff --word-diff
+
+** Find out if a change is part of a release
+
+    : $ git name-rev 33db5f4d9027a10e477ccf054b2c1ab94f74c85a
+    : 33db5f4d9027a10e477ccf054b2c1ab94f74c85a tags/v0.99~940
+
+Now you are wiser, because you know that it happened 940 revisions
+before v0.99.
+
 * Troubleshooting
 ** Git commit hangs with no output