Code

Added examples to tig(1) manpage
authorDominik Vogt <dvogt@ffm.tc.iot.dtag.de>
Thu, 27 Dec 2007 12:44:33 +0000 (13:44 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Tue, 5 Feb 2008 11:50:00 +0000 (12:50 +0100)
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.1.txt

index ea85954f0ab796c26d998fe407d7affcd84cda4c..778be9b8805d1955e0c6f74a50ae59dff50ee885 100644 (file)
--- a/tig.1.txt
+++ b/tig.1.txt
@@ -76,6 +76,39 @@ show::
 
        $ tig tag-1.0..HEAD
 
+EXAMPLES
+--------
+
+Display the current branch:
+-----------------------------------------------------------------------------
+$ tig
+-----------------------------------------------------------------------------
+
+Display one or more specific branches:
+-----------------------------------------------------------------------------
+$ tig test master
+-----------------------------------------------------------------------------
+
+Display all branches:
+-----------------------------------------------------------------------------
+$ tig -- --all
+-----------------------------------------------------------------------------
+
+Display differences between two branches:
+-----------------------------------------------------------------------------
+$ tig test..master
+-----------------------------------------------------------------------------
+
+Display changes for a single file:
+-----------------------------------------------------------------------------
+$ tig -- README
+-----------------------------------------------------------------------------
+
+Display revisions between two dates for a specific file:
+-----------------------------------------------------------------------------
+$ tig -- --after "2004-01-01" --before="2006-05-16" -- README
+-----------------------------------------------------------------------------
+
 ENVIRONMENT VARIABLES
 ---------------------
 TIG_LS_REMOTE::