chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
468876c
)
Further improve documentation
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
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index 3b51c5a4a947d8447bcb8b459e5d84be5c4c0c2a..6a94a2af9814a4a8401d3a6258f634033a66cb47 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-295,7
+295,7
@@
parse_options(int argc, char *argv[])
/**
* \--::
* End of tig(1) options. Useful when specifying commands
/**
* \--::
* End of tig(1) options. Useful when specifying commands
- * for the main view. Example:
+ *
options
for the main view. Example:
*
* $ tig -- --since=1.month
**/
*
* $ tig -- --since=1.month
**/
@@
-305,13
+305,13
@@
parse_options(int argc, char *argv[])
}
/**
}
/**
- * log [options]::
+ * log [
git log
options]::
* Open log view using the given 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.
*
* 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") ||
* Open diff view using the given git show options.
**/
if (!strcmp(opt, "log") ||
@@
-322,11
+322,14
@@
parse_options(int argc, char *argv[])
break;
}
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
*
* $ tig tag-1.0..HEAD
- *
- * work. */
+ **/
if (opt[0] && opt[0] != '-')
break;
if (opt[0] && opt[0] != '-')
break;