summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 468876c)
raw | patch | inline | side by side (parent: 468876c)
author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 15 May 2006 23:48:08 +0000 (01:48 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Mon, 15 May 2006 23:48:08 +0000 (01:48 +0200) |
tig.c | patch | blob | history |
index 3b51c5a4a947d8447bcb8b459e5d84be5c4c0c2a..6a94a2af9814a4a8401d3a6258f634033a66cb47 100644 (file)
--- a/tig.c
+++ b/tig.c
/**
* \--::
* End of tig(1) options. Useful when specifying commands
- * for the main view. Example:
+ * options for the main view. Example:
*
* $ tig -- --since=1.month
**/
}
/**
- * log [options]::
+ * log [git log options]::
* Open log view using the given git log options.
*
- * diff [options]::
+ * diff [git diff options]::
* Open diff view using the given git diff options.
*
- * show [options]::
+ * show [git show options]::
* Open diff view using the given git show options.
**/
if (!strcmp(opt, "log") ||
break;
}
- /* Make stuff like:
+ /**
+ * [git options]::
+ * tig(1) will stop the option parsing when the first
+ * command line parameter not starting with "-" is
+ * encountered. This makes the following work:
*
* $ tig tag-1.0..HEAD
- *
- * work. */
+ **/
if (opt[0] && opt[0] != '-')
break;